code: def parse_opts():
      parser = ArgumentParser(prog="is-changed")
  
      parser.add_argument(
          "-f",
          "--fail",
          action="store_true",
          help="Exit with 1 if there is no relevant change.",
      )
  
      default_value = ",".join(
          sorted([m.name for m in modules.all_modules])
      )
      parser.add_argument(
          "-m",
          "--modules",
          type=str,
          default=default_value,
          help="A comma-separated list of modules to test "
          "(default: %s)" % default_value,
      )
  
      args, unknown = parser.parse_known_args()
      if unknown:
          parser.error("Unsupported arguments: %s" % " ".join(unknown))
      return args
  
imports: import os
  import sys
  from argparse import ArgumentParser
  from sparktestsupport.utils import determine_modules_for_files, determine_modules_to_test, identify_changed_files_from_git_commits
  import sparktestsupport.modules
label_desc: Use image node_id 1 for calling a global function with example usage: parse_opts() and returns: args