def load_from_file(filepath, format_=FileFormat.py, update_data_callback=None,<EOL>disable_memcache=False):
filepath = os.path.realpath(filepath)<EOL>cache_filepath = file_cache.get(filepath)<EOL>if cache_filepath:<EOL><INDENT>return _load_file(filepath=cache_filepath,<EOL>format_=format_,<EOL>update_data_callback=update_data_callback,<EOL>original_filepath=filepath)<EOL><DEDENT>elif disable_memcache:<EOL><INDENT>return _load_file(filepath=filepath,<EOL>format_=format_,<EOL>update_data_callback=update_data_callback)<EOL><DEDENT>else:<EOL><INDENT>return _load_from_file(filepath=filepath,<EOL>format_=format_,<EOL>update_data_callback=update_data_callback)<EOL><DEDENT>
Load data from a file.

    Note:
        Any functions from a .py file will be converted to `SourceCode` objects.

    Args:
        filepath (str): File to load.
        format_ (`FileFormat`): Format of file contents.
        update_data_callback (callable): Used to change data before it is
            returned or cached.
        disable_memcache (bool): If True, don't r/w to memcache.

    Returns:
        dict.