code: def UnpackItems(*items, fields=None, defaults=None):
      
      defaults = defaults or {}
  
      @use_context
      @use_raw_input
      def _UnpackItems(context, bag):
          nonlocal fields, items, defaults
  
          if fields is None:
              fields = ()
              for item in items:
                  fields += tuple(bag[item].keys())
              context.set_output_fields(fields)
  
          values = ()
          for item in items:
              values += tuple(bag[item].get(field, defaults.get(field)) for field in fields)
  
          return values
  
      return _UnpackItems
docs: >>> UnpackItems(0)
  
      :param items:
      :param fields:
      :param defaults:
      :return: callable