class_docstr: Create side effect function for mocking gcsfs glob method.
class_docstr_tok: ["Create","side","effect","function","for","mocking","gcsfs","glob","method","."]
docstr: Mimic glob by being used as the side effect function.
docstr_tok: ["Mimic","glob","by","being","used","as","the","side","effect","function","."]
code: def __call__(self, pattern):
      """Mimic glob by being used as the side effect function."""
      try:
          num_results = self.num_results[self.current_call]
      except IndexError:
          num_results = self.num_results[-1]
      self.current_call += 1
      return [
          pattern + ".{:03d}".format(idx) for idx in range(num_results)
      ]
  
imports: from __future__ import annotations
  import contextlib
  import io
  import os
  import sys
  import tarfile
  import unittest
  from collections import defaultdict
  from unittest import mock
  import pytest
label_desc: Use image node_id 2 for calling the _GlobHelper obj's underlying member method code with example usage: obj.__call__(pattern) and returns: unknown