code: def ensure_flag(flag_str):
      try:
          getattr(FLAGS, flag_str)
      except flags.UnparsedFlagAccessError:
          # Manually parse flags.
          FLAGS(sys.argv)
      finally:
          assert getattr(FLAGS, flag_str)
  
label_desc: Use image node_id 1 for calling a global function with example usage: ensure_flag(flag_str) without return types