code: def _get_reader_mocked(along_track=3):
      """Create a mocked reader."""
      reader = mock.MagicMock(
          spacecraft_name="spacecraft_name", meta_data={"foo": "bar"}
      )
      reader.mask = [0, 0]
      reader.get_times.return_value = np.arange(along_track)
      reader.get_tle_lines.return_value = "tle"
      return reader
  
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 2 for calling a global function with example usage: _get_reader_mocked(along_track) and returns: reader