code: def _generate_modified_filenames(filename: str) -> Iterator[str]:
      """Generates the modified filenames with incremental name suffix added.
  
      This helper function first yields the given filename itself, and subsequently
      yields modified filenames by incrementing number suffix to the basename.
  
      Args:
        filename: The original filename to be modified.
  
      Yields:
        The original filename and then modified filenames with incremental suffix.
      """
      yield filename
  
      base, ext = os.path.splitext(filename)
      for name_suffix in itertools.count(1, 1):
          yield "{}_{}{}".format(base, name_suffix, ext)
  
file_path: tensorflow/tensorflow/lite/ios/extract_object_files.py
imports: import hashlib
  import io
  import itertools
  import os
  import struct
  from typing import Iterator, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _generate_modified_filenames(filename) without return types