def METHOD_NAME():
    clusters = {}
    if Variable.get('region') == "global":
        # Use the default gRPC global endpoints.
        dataproc_cluster_client = dataproc_v1.ClusterControllerClient()
    else:
        # Use a regional gRPC endpoint. See:
        # https://cloud.google.com/dataproc/docs/concepts/regional-endpoints
        dataproc_cluster_client = dataproc_v1.ClusterControllerClient(
            client_options={"api_endpoint": f"{Variable.get('region')}-dataproc.googleapis.com:443"}
        )
    print("clusters list:")
    for cluster in dataproc_cluster_client.METHOD_NAME(
        request={"project_id": Variable.get('project'), "region": Variable.get('region')}
    ):
        print(("{} - {}".format(cluster.cluster_name, cluster.status.state.name)))
        clusters[cluster.cluster_name] = cluster.status.state.name
    return clusters