code: def _main():
      root_dir = os.path.abspath(
          os.path.join(os.path.dirname(__file__), "..", "..")
      )
      guide_dir = os.path.join(root_dir, "guide")
      samples_dir = os.path.join(root_dir, "samples")
      labs_dir = os.path.join(root_dir, "labs")
      nb_file_paths = (
          glob.glob(
              os.path.join(guide_dir, "**", "*.ipynb"), recursive=True
          )
          + glob.glob(
              os.path.join(samples_dir, "**", "*.ipynb"), recursive=True
          )
          + glob.glob(
              os.path.join(labs_dir, "**", "*.ipynb"), recursive=True
          )
      )
  
      for nb_file_path in nb_file_paths:
          print(f"Replacing profiles in {nb_file_path}")
          f = open(nb_file_path, "r")
          file_contents = f.read()
          file_contents = _replace_profiles(file_contents)
          f.close()
          f = open(nb_file_path, "w")
          f.write(file_contents)
          f.close()
          print(f"    Finished!")
  
imports: import sys
  import os
  import re
  import glob
label_desc: Use image node_id 2 for calling a global function with example usage: _main() without return types