def METHOD_NAME(self, name, obj):
    """Collect metadata."""
    if isinstance(obj, h5py.Dataset):
        self.file_content[name] = obj
        self.file_content[name + "/dtype"] = obj.dtype
        self.file_content[name + "/shape"] = obj.shape
    self._collect_attrs(name, obj.attrs)