code: def _minimally_quoted_parameter_value(value):
          
          if re.match("^[{charset}]*$".format(charset=MediaType.RFC7320_TOKEN_CHARSET), value):
              return value
          else:
              return MediaType._quote(value)
docs: Per RFC 7321 (https://tools.ietf.org/html/rfc7231#section-3.1.1.1):
          Parameters values don't need to be quoted if they are a "token".
          Token characters are defined by RFC 7320 (https://tools.ietf.org/html/rfc7230#section-3.2.6).
          Otherwise, parameters values can be a "quoted-string".
          So we will quote values that contain characters other than the standard token characters.