Return the path of file relative to
Returns the fully qualified class path of the instantiated object.
Write an object as a json string to a file.
Write a text to a file.
Checks if the given directory contains a model and can be safely removed.
specifically checks if the directory has no subdirectories and if all files have an appropriate ending.
Return True if string is an http, ftp, or file URL path.
This implementation is the same as the one used by matplotlib
Removes a model directory and all its content.