code: def to_dict(self, *args, **kwargs):
      res = super(Request, self).to_dict(*args, **kwargs)
      if self._extra_fields:
          res.update(self._extra_fields)
      return res
  
imports: import abc
  import six
  from jsonschema.exceptions import FormatError, SchemaError, ValidationError
  from .apimodel import ApiModel
  from .datamodel import DataModel
  from .defs import ENV_API_DEFAULT_REQ_METHOD
label_desc: Use image node_id 2 for calling the Request obj's underlying member method code with example usage: obj.to_dict() and returns: res