code: def _expect_extra(
      expected, present, exc_unexpected, exc_missing, exc_args
  ):
      """
      Checks for the presence of an extra to the argument list. Raises expections
      if this is unexpected or if it is missing and expected.
      """
      if present:
          if not expected:
              raise exc_unexpected(*exc_args)
      elif expected and expected is not Argument.ignore:
          raise exc_missing(*exc_args)
  
imports: from collections import namedtuple
  import inspect
  from itertools import chain
  from six.moves import map, zip_longest
  from catalyst.errors import ZiplineError
label_desc: Use image node_id 2 for calling a global function with example usage: _expect_extra(expected, present, exc_unexpected, exc_missing, exc_args) without return types