code: def get_friends(py_file):
      for ext in (".py", ".py.md5", ".rst", ".ipynb"):
          friend = re.sub(r"\.py$", ext, py_file)
          if os.path.isfile(friend):
              yield friend
  
file_path: gensim/docs/src/tools/check_gallery.py
imports: import argparse
  import os
  import os.path
  import re
  import sys
  import shlex
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: get_friends(py_file) without return types