def match(self, content_type):
    content_type, _ = cgi.parse_header(content_type)
    match = self.__CONTENT_TYPE_REGEX.match(content_type.lower())
    if not match:
      return False

    main_type, sub_type = match.group(1), match.group(2)
    if not(main_type and sub_type):
      return False

    return ((self.__main_type is None or self.__main_type == main_type) and
            (self.__sub_type is None or self.__sub_type == sub_type))
:type cost: Scalar (0-dimensional) Variable.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/util.py/AcceptItem.match--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gradient.py/hessian