def METHOD_NAME(
    swagger_spec,  # type: Spec
    primitive_spec,  # type: JSONDict
    value,  # type: typing.Any
):
    # type: (...) -> typing.Any
    """Converts a value in wire format to its python representation if
     it has an associated Swagger `format`.
    :type swagger_spec: :class:`bravado_core.spec.Spec`
    :param primitive_spec: spec for a primitive type as a dict
    :type value: int, long, float, boolean, string, unicode, etc
    :rtype: int, long, float, boolean, string, object, etc
    """
    if value is None or not schema.has_format(swagger_spec, primitive_spec):
        return value
    format_name = schema.get_format(swagger_spec, primitive_spec)
    formatter = swagger_spec.get_format(format_name)
    return formatter.METHOD_NAME(value) if formatter else value