@staticmethod
def load_from_function(function, path_to_file, **kwargs):
    """Load a file according to a given function

        Parameters
        ----------
        function: func
            callable function that will load in your file
        path_to_file: str
            path to the file that you wish to load
        kwargs: dict
            all kwargs are passed to the function
        """
    return function(path_to_file, **kwargs)
