class_docstr: Swap-in HDF5 File Handler.
class_docstr_tok: ["Swap-in","HDF5","File","Handler","."]
code: def _convert_numpy_content_to_dataarray(final_content):
      import dask.array as da
      from xarray import DataArray
  
      for key, val in final_content.items():
          if isinstance(val, np.ndarray):
              val = da.from_array(val, chunks=val.shape)
              if val.ndim > 2:
                  final_content[key] = DataArray(
                      val, dims=("y", "x", "z")
                  )
              elif val.ndim > 1:
                  final_content[key] = DataArray(val, dims=("y", "x"))
              else:
                  final_content[key] = DataArray(val)
  
imports: import os
  from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  from satpy._config import config_search_paths
  from satpy.readers import load_reader
  from satpy.readers.atms_sdr_hdf5 import ATMS_CHANNEL_NAMES
  from satpy.readers.viirs_atms_sdr_base import DATASET_KEYS
  from satpy.tests.reader_tests.test_hdf5_utils import FakeHDF5FileHandler
label_desc: Use image node_id 9 for calling the FakeHDF5_ATMS_SDR_FileHandler obj's underlying member method code with example usage: obj._convert_numpy_content_to_dataarray(final_content) without return types