code: def install_tvm(
      working_dir: str = None,
  ):
      """Helper function for installing ApacheTVM.
  
      This function needs some prerequisites for running, as a valid `git`
      installation and having MacOS or a Linux-distribution as OS.
  
      Args:
          working_dir (str, optional): The directory where the tvm repo will be
              cloned and installed.
      """
      path = Path(__file__).parent
      # install pre-requisites
      installation_file_prerequisites = str(
          path / "install_tvm_prerequisites.sh"
      )
      subprocess.run(
          ["bash", installation_file_prerequisites],
          cwd=working_dir or Path.home(),
      )
      installation_file = str(path / "install_tvm.sh")
      hardware_config = get_cpu_arch()
      if gpu_is_available():
          hardware_config = f"{hardware_config}_cuda"
      env_dict = {
          "CONFIG_PATH": str(
              path / f"tvm_installers/{hardware_config}/config.cmake"
          ),
          **dict(os.environ.copy()),
      }
      subprocess.run(
          ["bash", installation_file],
          cwd=working_dir or Path.home(),
          env=env_dict,
      )
  
      try:
          import tvm  # noqa F401
      except ImportError:
          return True
  
      return True
  
imports: import os
  import platform
  import subprocess
  import sys
  from abc import ABC
  from pathlib import Path
  from typing import List
  import cpuinfo
  from loguru import logger
  from nebullvm.config import LIBRARIES_GPU
  from nebullvm.operations.optimizations.compilers.utils import deepsparse_is_available, get_faster_transformer_repo_path, intel_neural_compressor_is_available, openvino_is_available, tensorrt_is_available, torch_tensorrt_is_available
  from nebullvm.optional_modules.torch import torch
  from nebullvm.tools.utils import check_module_version, gpu_is_available
label_desc: Use image node_id 3 for calling a global function with example usage: install_tvm(working_dir) and returns: True, True