class_docstr: Base class for common HDF4 operations.
class_docstr_tok: ["Base","class","for","common","HDF4","operations","."]
docstr: Collect all metadata about file content.
docstr_tok: ["Collect","all","metadata","about","file","content","."]
code: def collect_metadata(self, name, obj):
      """Collect all metadata about file content."""
      if isinstance(obj, SDS):
          self.file_content[name] = obj
          info = obj.info()
          self.file_content[name + "/dtype"] = np.dtype(
              HTYPE_TO_DTYPE.get(info[3])
          )
          self.file_content[name + "/shape"] = (
              info[2]
              if isinstance(info[2], (int, float))
              else tuple(info[2])
          )
  
file_path: satpy/satpy/readers/hdf4_utils.py
imports: import logging
  import dask.array
  import numpy
  import xarray
  from pyhdf.SD import SD, SDC, SDS
  from satpy.readers.file_handlers import BaseFileHandler
  from satpy.utils import get_legacy_chunk_size
label_desc: Use image node_id 3 for calling the HDF4FileHandler obj's underlying member method code with example usage: obj.collect_metadata(name, obj) without return types