code: def create_tpu(
      name,
      zone,
      type,
      preemptible,
  ):
      headers = {
          "Authorization": f"Bearer {get_bearer()}",
          "Content-Type": "application/json",
      }
  
      try:
          status = check_tpu(name, zone)
  
          if status["state"] not in ["CREATING", "READY"]:
              print("deleting TPU")
              delete_tpu(name, zone)
  
              while True:
                  try:
                      print("deleting check")
                      print(check_tpu(name, zone)["state"])
  
                      time.sleep(1)
                  except:
                      break
      except:
          pass
  
      params = (("node_id", name),)
  
      data = {
          "accelerator_type": type,
          "runtime_version": "v2-alpha",
          "network_config": {"enable_external_ips": True},
      }
  
      if preemptible:
          data["schedulingConfig"] = {"preemptible": True}
  
      response = requests.post(
          f"https://tpu.googleapis.com/v2alpha1/projects/{get_project()}/locations/{zone}/nodes",
          headers=headers,
          params=params,
          json=data,
      )
  
      print(response.json())
  
      return response.status_code == 200
  
file_path: mesh-transformer-jax/ray_tpu.py
imports: import functools
  import os
  import subprocess
  import time
  import glob
  import requests
  from fabric import Connection
label_desc: Use image node_id 3 for calling a global function with example usage: create_tpu(name, zone, type, preemptible) and returns: unknown