code: def normalize_flags(argv: List[str]) -> List[str]:
      """Returns normalized explicit bolean flags for `absl.flags` compatibility.
  
      Note: Boolean flags in `absl.flags` can be specified with --bool, --nobool,
      as well as --bool=true/false (though not recommended); in `argparse_flags`,
      it only allows --bool, --nobool.
  
      Args:
        argv: Arguments for `main()`.
      """
      boolean_flag_pattern = re.compile(r"--[\w_]+=(true|false)")
  
      def _normalize_flag(arg: str) -> str:
          if not boolean_flag_pattern.match(arg):
              return arg
          if arg.endswith("=true"):
              return arg[: -len("=true")]  # `--flag=true` -> `--flag`
          elif arg.endswith("=false"):
              # `--flag=false` -> `--noflag`
              return "--no" + arg[len("--") : -len("=false")]
          else:
              raise AssertionError(f"Unrecognized arg: {arg}")
  
      return [_normalize_flag(a) for a in argv]
  
label_desc: Use image node_id 1 for calling a global function with example usage: normalize_flags(argv) and returns: unknown, arg, arg, unknown