code: def _create_fake_file_handler(
      in_fname, filename_info=None, filetype_info=None, fh_kwargs=None
  ):
      if filename_info is None:
          filename_info = {"segment": 8, "total_segments": 10}
      if filetype_info is None:
          filetype_info = {"file_type": "hsd_b01"}
      if fh_kwargs is None:
          fh_kwargs = {}
      fh = AHIHSDFileHandler(
          in_fname, filename_info, filetype_info, **fh_kwargs
      )
  
      # Check that the filename is altered and 2 digit segment prefix added for bz2 format files
      assert in_fname != fh.filename
      assert str(filename_info["segment"]).zfill(2) == fh.filename[0:2]
      return fh
  
imports: from __future__ import annotations
  import contextlib
  import unittest
  import warnings
  from datetime import datetime
  from typing import Any, Dict
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  from satpy.readers.ahi_hsd import AHIHSDFileHandler
  from satpy.readers.utils import get_geostationary_mask
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 5 for calling a global function with example usage: _create_fake_file_handler(in_fname, filename_info, filetype_info, fh_kwargs) and returns: fh