class_docstr: Testcase for dataset metadata.
class_docstr_tok: ["Testcase","for","dataset","metadata","."]
docstr: Mock file handler to load the given fake dataset.
code: def mocked_file_handler(self, dataset):
      """Mock file handler to load the given fake dataset."""
      from satpy.readers.goes_imager_nc import (
          FULL_DISC,
          GOESNCFileHandler,
      )
  
      with mock.patch("satpy.readers.goes_imager_nc.xr") as xr_:
          xr_.open_dataset.return_value = dataset
          GOESNCFileHandler.vis_sectors[(3, 4)] = FULL_DISC
          GOESNCFileHandler.ir_sectors[(3, 4)] = FULL_DISC
          GOESNCFileHandler.yaw_flip_sampling_distance = 1
          return GOESNCFileHandler(
              filename="dummy",
              filename_info={},
              filetype_info={},
          )
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.readers.goes_imager_nc import is_vis_channel
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 9 for calling the TestMetadata obj's underlying member method code with example usage: obj.mocked_file_handler(dataset) and returns: GOESNCFileHandler