def METHOD_NAME(cmd, cluster_rp, subscription_id, cluster_resource_group_name, cluster_name, cluster_type):
    cluster_region = ''
    resources = cf_resources(cmd.cli_ctx, subscription_id)
    cluster_resource_id = CLUSTER_RESOURCE_ID.format(
        subscription_id, cluster_resource_group_name, cluster_rp, cluster_type, cluster_name)
    try:
        if cluster_rp.lower() == consts.HYBRIDCONTAINERSERVICE_RP:
            resource = resources.get_by_id(cluster_resource_id, consts.HYBRIDCONTAINERSERVICE_API_VERSION)
        else:
            resource = resources.get_by_id(cluster_resource_id, ClUSTER_RESOURCE_API)
        cluster_region = resource.location.lower()
    except HttpResponseError as ex:
        raise ex
    return cluster_region