class_docstr: Test NetCDF4 File Handler Utility class.
class_docstr_tok: ["Test","NetCDF4","File","Handler","Utility","class","."]
docstr: Test that get_and_cache_npxr() returns xr.DataArray.
docstr_tok: ["Test","that","get_and_cache_npxr","(",")","returns","xr.DataArray","."]
code: def test_get_and_cache_npxr_is_xr(self):
      """Test that get_and_cache_npxr() returns xr.DataArray."""
      import xarray as xr
  
      from satpy.readers.netcdf_utils import NetCDF4FileHandler
  
      file_handler = NetCDF4FileHandler(
          "test.nc", {}, {}, cache_handle=True
      )
  
      data = file_handler.get_and_cache_npxr("test_group/ds1_f")
      assert isinstance(data, xr.DataArray)
  
imports: import os
  import unittest
  import numpy
  import pytest
label_desc: Use image node_id 8 for calling the TestNetCDF4FileHandler obj's underlying member method code with example usage: obj.test_get_and_cache_npxr_is_xr() without return types