class_docstr: Test the SAFE GRD file handler.
class_docstr_tok: ["Test","the","SAFE","GRD","file","handler","."]
docstr: Set up the test case.
docstr_tok: ["Set","up","the","test","case","."]
code: def setUp(self, mocked_rio_open):
      """Set up the test case."""
      from satpy.readers.sar_c_safe import SAFEGRD
  
      filename_info = {
          "mission_id": "S1A",
          "dataset_name": "foo",
          "start_time": 0,
          "end_time": 0,
          "polarization": "vv",
      }
      filetype_info = "bla"
      self.noisefh = mock.MagicMock()
      self.noisefh.get_noise_correction.return_value = xr.DataArray(
          np.zeros((2, 2)), dims=["y", "x"]
      )
      self.calfh = mock.MagicMock()
      self.calfh.get_calibration_constant.return_value = 1
      self.calfh.get_calibration.return_value = xr.DataArray(
          np.ones((2, 2)), dims=["y", "x"]
      )
      self.annotationfh = mock.MagicMock()
  
      self.test_fh = SAFEGRD(
          "S1A_IW_GRDH_1SDV_20190201T024655_20190201T024720_025730_02DC2A_AE07.SAFE/measurement/"
          "s1a-iw-grd-vv-20190201t024655-20190201t024720-025730-02dc2a-001.tiff",
          filename_info,
          filetype_info,
          self.calfh,
          self.noisefh,
          self.annotationfh,
      )
      self.mocked_rio_open = mocked_rio_open
  
imports: import unittest
  import unittest.mock
  from enum import Enum
  from io import BytesIO
  import dask.array
  import numpy
  import xarray
  from satpy.dataset import DataQuery
  from satpy.readers.sar_c_safe import SAFEXMLAnnotation, SAFEXMLCalibration, SAFEXMLNoise
label_desc: Use image node_id 1 for calling the TestSAFEGRD obj's underlying member method code with example usage: obj.setUp(mocked_rio_open) without return types