class_docstr: OverrideDefaultListAction
  
  An argparse action that works similarly to the regular 'append' action.
  The default value is deleted when a new value is specified. The 'append'
  action would append the new value to the default.
  
  Parameters
  ----------
  sep : str, optional
      Separator to be used if multiple values should be parsed from a list.
class_docstr_tok: ["OverrideDefaultListAction","An","argparse","action","that","works","similarly","to","the","regular","'append","'","action",".","The","default","value","is","deleted","when","a","new","value","is","specified",".","The","'append'","action","would","append","the","new","value","to","the","default",".","Parameters","--","--","--","--","--","sep",":","str",",","optional","Separator","to","be","used","if","multiple","values","should","be","parsed","from","a","list","."]
code: def __call__(self, parser, namespace, value, option_string=None):
      # if this Action is called for the first time, remove the defaults
      if self.set_to_default:
          setattr(namespace, self.dest, [])
          self.set_to_default = False
      # get the current values
      cur_values = getattr(namespace, self.dest)
      # convert to correct type and append the newly parsed values
      try:
          cur_values.extend(
              [self.list_type(v) for v in value.split(self.sep)]
          )
      except ValueError as e:
          raise argparse.ArgumentError(self, str(e) + value)
  
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import contextlib
  import io
  import numpy
label_desc: Use image node_id 2 for calling the OverrideDefaultListAction obj's underlying member method code with example usage: obj.__call__(parser, namespace, value, option_string) without return types