class_docstr: EDR file handler.
docstr: Get the metadata.
docstr_tok: ["Get","the","metadata","."]
code: def get_metadata(self, dataset_id, ds_info):
      """Get the metadata."""
      var_path = ds_info.get(
          "file_key", "{}".format(dataset_id["name"])
      )
      info = getattr(self[var_path], "attrs", {}).copy()
      info.pop("DIMENSION_LIST", None)
      info.update(ds_info)
  
      file_units = ds_info.get("file_units")
      if file_units is None:
          file_units = self.get(
              var_path + "/attr/units",
              self.get(var_path + "/attr/Units"),
          )
      if file_units is None:
          raise KeyError(
              "File variable '{}' has no units attribute".format(
                  var_path
              )
          )
      if file_units == "deg":
          file_units = "degrees"
      elif file_units == "Unitless":
          file_units = "1"
  
      info.update(
          {
              "shape": self.get_shape(dataset_id, ds_info),
              "file_units": file_units,
              "units": ds_info.get("units", file_units),
              "platform_name": self.platform_name,
              "sensor": self.sensor_name,
              "start_orbit": self.start_orbit_number,
              "end_orbit": self.end_orbit_number,
          }
      )
      info.update(dataset_id.to_dict())
      if "standard_name" not in ds_info:
          info["standard_name"] = self.get(
              var_path + "/attr/Title", dataset_id["name"]
          )
      return info
  
file_path: satpy/satpy/readers/omps_edr.py
imports: import logging
  from datetime import datetime, timedelta
  import numpy
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 7 for calling the EDRFileHandler obj's underlying member method code with example usage: obj.get_metadata(dataset_id, ds_info) and returns: info