code: def _objs_opts(objs, all=None, **opts):
      '''Return given or 'all' objects
         and the remaining options.
      '''
      if objs:  # given objects
          t = objs
      elif all in (False, None):
          t = ()
      elif all is True:  # 'all' objects ...
           # ... modules first, globals and stack
           # (may contain duplicate objects)
          t = tuple(_values(sys.modules)) + (
              globals(), stack(sys.getrecursionlimit())[2:])
      else:
          raise ValueError('invalid option: %s=%r' % ('all', all))
      return t, optf _objs_opts(objs, all=None, **opts):
      '''Return given or 'all' objects
         and the remaining options.
      '''
      if objs:  # given objects
          t = objs
      elif all in (False, None):
          t = ()
      elif all is True:  # 'all' objects ...
           # ... modules first, globals and stack
           # (may contain duplicate objects)
          t = tuple(_values(sys.modules)) + (
              globals(), stack(sys.getrecursionlimit())[2:])
      else:
          raise ValueError('invalid option: %s=%r' % ('all', all))
      return t, opts
docs: Return given or 'all' objects
         and the remaining options.