def METHOD_NAME(schema):
    """Replace all the refs in jsonschema.
    :param schema: JSON schema for which the refs should be resolved.
    :type schema: dict
    :returns: JSON schema with resolved refs.
    :rtype: dict
    """
    return deepcopy(_records_state.replace_refs(schema))