[docs]defread_object_file(path:str)->Dict[str,Any]:""" Read the ``OBJECT`` file in each directory, which provides some high-level metadata of the object represented by that directory. It is guaranteed to have a ‘type’ property that specifies the object type; individual objects may add their own information to this file. Args: path: Path to a directory containing the object. Returns: Dictionary containing the object metadata. """withopen(os.path.join(path,"OBJECT"),"rb")ashandle:metadata=json.load(handle)returnmetadata