class_docstr: Test the remote reading class.
class_docstr_tok: ["Test","the","remote","reading","class","."]
docstr: Test that h5netcdf is used for files that are not accesible locally.
docstr_tok: ["Test","that","h5netcdf","is","used","for","files","that","are","not","accesible","locally","."]
code: def test_use_h5netcdf_for_file_not_accessible_locally(self):
      """Test that h5netcdf is used for files that are not accesible locally."""
      from unittest.mock import patch
  
      fname = "s3://bucket/object.nc"
  
      with patch("h5netcdf.File") as h5_file:
          with patch(
              "satpy.readers.netcdf_utils.open_file_or_filename"
          ):
              from satpy.readers.netcdf_utils import (
                  NetCDF4FsspecFileHandler,
              )
  
              fh = NetCDF4FsspecFileHandler(fname, {}, {})
              h5_file.assert_called_once()
              assert fh._use_h5netcdf
  
imports: import os
  import unittest
  import numpy
  import pytest
label_desc: Use image node_id 2 for calling the TestNetCDF4FsspecFileHandler obj's underlying member method code with example usage: obj.test_use_h5netcdf_for_file_not_accessible_locally() without return types