def METHOD_NAME(data):
    """Returns the id value of the resource type vocabulary."""
    if "subtype" in data["resource_type"]:
        return data["resource_type"]["subtype"]
    elif "type" in data["resource_type"]:
        return data["resource_type"]["type"]