def generate_resource_url(
    url: str, resource_type: str = "", resource_id: str = "", version: str = "v1"
) -> str:
    """
    Generate a resource's URL using a base url, the resource type and a version.
    """
    return f"{url}/{resource_type}/{resource_id}"