code: def media_type_matches(lhs, rhs):
      
      lhs = _MediaType(lhs)
      rhs = _MediaType(rhs)
      return lhs.match(rhs)
docs: Returns ``True`` if the media type in the first argument <= the
      media type in the second argument.  The media types are strings
      as described by the HTTP spec.
  
      Valid media type strings include:
  
      'application/json; indent=4'
      'application/json'
      'text/*'
      '*/*'