code: def gen_user_data(
      self, worker_prefix, queue_name, task_id, cpu_only=False
  ):
      return bash_script_template.format(
          queue=queue_name,
          worker_prefix=worker_prefix,
          auth_token=self.auth_token or "",
          access_key=self.access_key or "",
          api_server=self.api_server,
          clearml_conf=self.clearml_conf(),
          files_server=self.files_server,
          secret_key=self.secret_key or "",
          web_server=self.web_server,
          bash_script=(
              "export NVIDIA_VISIBLE_DEVICES=none; " if cpu_only else ""
          )
          + self.extra_vm_bash_script,
          driver_extra=self.driver_bash_extra(task_id),
          docker="--docker '{}'".format(self.docker_image)
          if self.docker_image
          else "",
          instance_id_command=self.instance_id_command(),
      )
  
imports: import logging
  from abc import ABC, abstractmethod
  from os import environ
  import attr
  from ..backend_api import Session
  from ..backend_api.session.defs import ENV_AUTH_TOKEN
label_desc: Use image node_id 8 for calling the CloudDriver obj's underlying member method code with example usage: obj.gen_user_data(worker_prefix, queue_name, task_id, cpu_only) and returns: bash_script_template