code: def main():
      args = parse_args()
      yaml = YAML()
      yaml.preserve_quotes = True
  
      with open(args.requirements_yaml_location) as f:
          requirements_src = f.read()
          requirements = yaml.load(requirements_src)
  
      for key, req_info in requirements.items():
          pip_release = req_info["pip_release"]
          max_major_version = req_info["max_major_version"]
          if req_info.get("freeze", False):
              continue
          latest_major_version = get_latest_major_version(pip_release)
          if latest_major_version > max_major_version:
              requirements[key][
                  "max_major_version"
              ] = latest_major_version
              print(
                  f"Updated {key}.max_major_version to {latest_major_version}"
              )
  
      with open(args.requirements_yaml_location, "w") as f:
          yaml.dump(requirements, f)
  
imports: import argparse
  import requests
  from packaging.version import InvalidVersion, Version
  from ruamel.yaml import YAML
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types