def METHOD_NAME(cluster, provider, account, datacentre_loc):
    cluster_console_url = ""
    if provider == "gcp":
        gcp_cluster = cluster["gcp"]["cluster"]
        gcp_project = cluster["gcp"]["project"]
        cluster_console_url = (
            f"https://console.cloud.google.com/kubernetes/clusters/details/{datacentre_loc}/{gcp_cluster}/details?project={gcp_project}"
            if datacentre_loc
            else None
        )
    elif provider == "aws":
        if account == "2i2c":
            cluster_console_url = "https://2i2c.awsapps.com/start#/"
        else:
            cluster_console_url = (
                f"https://{account}.signin.aws.amazon.com/console" if account else None
            )
    elif provider == "azure":
        cluster_console_url = "https://portal.azure.com"
    return cluster_console_url