code: def test_get_scale_factors_for_units_tbs(caplog):
      """Test get scale factors for units, when variable is supposed to be a brightness temperature."""
      factors = xr.DataArray(
          da.from_array(DEFAULT_FILE_FACTORS, chunks=1)
      )
      file_units = "W cm-2 sr-1"
      output_units = "W m-2 sr-1"
      with caplog.at_level(logging.DEBUG):
          retv = _get_scale_factors_for_units(
              factors, file_units, output_units
          )
  
      log_output = "Adjusting scaling factors to convert 'W cm-2 sr-1' to 'W m-2 sr-1'"
      assert log_output in caplog.text
      np.testing.assert_allclose(retv, np.array([20000.0, 10000.0]))
  
file_path: satpy/satpy/tests/reader_tests/test_viirs_atms_utils.py
imports: import logging
  import dask.array
  import numpy
  import pytest
  import xarray
  from satpy.readers.viirs_atms_sdr_base import _get_file_units, _get_scale_factors_for_units
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_scale_factors_for_units_tbs(caplog) without return types