code: def __init__(
      self,
      zone="us-east1-c",
      auth_cookie=None,
      verbose=10,
      branch=None,
      user_startup_script=None,
  ):
      assert "GOOGLE_APPLICATION_CREDENTIALS" in os.environ.keys()
      with open(os.environ["GOOGLE_APPLICATION_CREDENTIALS"], "r") as f:
          credentials_dict = json.loads(f.read())
  
      self.compute = googleapiclient.discovery.build("compute", "v1")
  
      self.startup_script_file = os.path.join(
          os.path.dirname(__file__), "scripts/gcloud_worker_startup.sh"
      )
  
      self.install_studio_script = os.path.join(
          os.path.dirname(__file__), "scripts/install_studio.sh"
      )
  
      self.zone = zone
      self.projectid = credentials_dict["project_id"]
      self.logger = logs.get_logger("GCloudWorkerManager")
      self.logger.setLevel(verbose)
      self.auth_cookie = auth_cookie
      self.user_startup_script = user_startup_script
      self.repo_url = git_util.get_my_repo_url()
      self.branch = (
          branch if branch else git_util.get_my_checkout_target()
      )
      self.log_bucket = "studioml-logs"
  
      if user_startup_script:
          self.logger.warn("User startup script argument is deprecated")
  
imports: import os
  import time
  import googleapiclient.discovery
  import uuid
  import math
  import json
  from studio import git_util
  from studio.util import logs
  from studio.util.gpu_util import memstr2int
  from .cloud_worker_util import insert_user_startup_script
label_desc: Use image node_id 1 to create a new GCloudWorkerManager object from inherited base classes: object with example: obj = GCloudWorkerManager(zone, auth_cookie, verbose, branch, user_startup_script)