code: def get(name, default_value=None, implied_value=None):
      global options
  
      matches = b2.util.regex.transform(
          sys.argv, "--" + re.escape(name) + "=(.*)"
      )
      if matches:
          return matches[-1]
      else:
          m = b2.util.regex.transform(
              sys.argv, "--(" + re.escape(name) + ")"
          )
          if m and implied_value:
              return implied_value
          elif options.get(name) is not None:
              return options[name]
          else:
              return default_value
  
imports: import sys
  import re
  import b2.util.regex
label_desc: Use image node_id 2 for calling a global function with example usage: get(name, default_value, implied_value) and returns: matches, implied_value, options, default_value