class_docstr: Parse a flag into a pysc2.lib.point.Point.
code: def parse(self, argument):
      if not argument or argument == "0":
          return None
  
      if isinstance(argument, int):
          args = [argument]
      elif isinstance(argument, (list, tuple)):
          args = argument
      elif isinstance(argument, str):
          args = argument.split(",")
      else:
          raise ValueError(
              "Invalid point: '%r'. Valid: '<int>' or '<int>,<int>'."
              % argument
          )
  
      args = [int(v) for v in args]
  
      if len(args) == 1:
          args *= 2
      if len(args) == 2:
          return point.Point(args[0], args[1])
      raise ValueError(
          "Invalid point: '%s'. Valid: '<int>' or '<int>,<int>'."
          % argument
      )
  
file_path: pysc2/pysc2/lib/point_flag.py
imports: from absl import flags
  from pysc2.lib import point
label_desc: Use image node_id 1 for calling the PointParser obj's underlying member method code with example usage: obj.parse(argument) and returns: None, point