code: def _get_fh_mocked(init_mock, **attrs):
      """Create a mocked file handler with the given attributes."""
      from satpy.readers.avhrr_l1b_gaclac import GACLACFile
  
      fh = GACLACFile()
      for name, value in attrs.items():
          setattr(fh, name, value)
      return fh
  
imports: from datetime import datetime
  from unittest import TestCase, mock
  import dask.array
  import numpy
  import pytest
  import xarray
label_desc: Use image node_id 1 for calling a global function with example usage: _get_fh_mocked(init_mock) and returns: fh