code: def apdu_contents(self, use_dict=None, as_class=dict):
          
          if _debug: APCISequence._debug("apdu_contents use_dict=%r as_class=%r", use_dict, as_class)
  
          # make/extend the dictionary of content
          if use_dict is None:
              use_dict = as_class()
  
          # set the function based on the class name
          use_dict.__setitem__('function', self.__class__.__name__)
  
          # fill in from the sequence contents
          Sequence.dict_contents(self, use_dict=use_dict, as_class=as_class)
  
          # return what we built/updated
          return use_dict
docs: Return the contents of an object as a dict.