code: def find_cloud_by_name(
      cloud_name: str, sdk: Optional["AnyscaleSDK"] = None
  ) -> Optional[str]:
      sdk = sdk or get_anyscale_sdk()
  
      cloud_id = None
      logger.info(f"Looking up cloud with name `{cloud_name}`. ")
  
      paging_token = None
      while not cloud_id:
          result = sdk.search_clouds(
              clouds_query=dict(
                  paging=dict(count=50, paging_token=paging_token)
              )
          )
  
          paging_token = result.metadata.next_paging_token
  
          for res in result.results:
              if res.name == cloud_name:
                  cloud_id = res.id
                  logger.info(
                      f"Found cloud with name `{cloud_name}` as `{cloud_id}`"
                  )
                  break
  
          if not paging_token or cloud_id or not len(result.results):
              break
  
      return cloud_id
  
imports: from typing import TYPE_CHECKING, Optional
  from ray_release.logger import logger
  from ray_release.util import get_anyscale_sdk
label_desc: Use image node_id 1 for calling a global function with example usage: find_cloud_by_name(cloud_name, sdk) and returns: cloud_id