code: def _get_scale_factors_for_units(factors, file_units, output_units):
      if file_units == "W cm-2 sr-1" and output_units == "W m-2 sr-1":
          LOG.debug(
              "Adjusting scaling factors to convert '%s' to '%s'",
              file_units,
              output_units,
          )
          factors = factors * 10000.0
      elif file_units == "1" and output_units == "%":
          LOG.debug(
              "Adjusting scaling factors to convert '%s' to '%s'",
              file_units,
              output_units,
          )
          factors = factors * 100.0
      else:
          raise ValueError(
              "Don't know how to convert '{}' to '{}'".format(
                  file_units, output_units
              )
          )
      return factors
  
imports: import logging
  from datetime import datetime, timedelta
  import dask.array
  import numpy
  import xarray
  from satpy.readers.hdf5_utils import HDF5FileHandler
label_desc: Use image node_id 1 for calling a global function with example usage: _get_scale_factors_for_units(factors, file_units, output_units) and returns: factors