code: def _ensure_cluster_project_binding(
      client: LightningClient, project_id: str, cluster_id: str
  ) -> None:
      cluster_bindings = (
          client.projects_service_list_project_cluster_bindings(
              project_id=project_id
          )
      )
  
      for cluster_binding in cluster_bindings.clusters:
          if cluster_binding.cluster_id != cluster_id:
              continue
          if cluster_binding.project_id == project_id:
              return
  
      client.projects_service_create_project_cluster_binding(
          project_id=project_id,
          body=ProjectIdProjectclustersbindingsBody(
              cluster_id=cluster_id
          ),
      )
  
imports: import random
  from lightning_cloud.openapi import ProjectIdProjectclustersbindingsBody, V1ClusterType
  from lightning_cloud.openapi.rest import ApiException
  from lightning.app.utilities.network import LightningClient
label_desc: Use image node_id 1 for calling a global function with example usage: _ensure_cluster_project_binding(client, project_id, cluster_id) without return types