code: def get_params(mail, failobj=None, header='content-type', unquote=True):
      '''Get Content-Type parameters as dict.
  
      RFC 2045 specifies that parameter names are case-insensitive, so
      we normalize them here.
  
      :param mail: :class:`email.message.Message`
      :param failobj: object to return if no such header is found
      :param header: the header to search for parameters, default
      :param unquote: unquote the values
      :returns: a `dict` containing the parameters
      '''
      failobj = failobj or []
      return {k.lower(): v for k, v in mail.get_params(failobj, header, unquote)f get_params(mail, failobj=None, header='content-type', unquote=True):
      '''Get Content-Type parameters as dict.
  
      RFC 2045 specifies that parameter names are case-insensitive, so
      we normalize them here.
  
      :param mail: :class:`email.message.Message`
      :param failobj: object to return if no such header is found
      :param header: the header to search for parameters, default
      :param unquote: unquote the values
      :returns: a `dict` containing the parameters
      '''
      failobj = failobj or []
      return {k.lower(): v for k, v in mail.get_params(failobj, header, unquote)}
docs: Get Content-Type parameters as dict.
  
      RFC 2045 specifies that parameter names are case-insensitive, so
      we normalize them here.
  
      :param mail: :class:`email.message.Message`
      :param failobj: object to return if no such header is found
      :param header: the header to search for parameters, default
      :param unquote: unquote the values
      :returns: a `dict` containing the parameters