code: def install_tensor_rt():
      """Helper function for installing TensorRT.
  
      The function will install the software only if a cuda driver is available.
      """
      if not gpu_is_available():
          raise RuntimeError(
              "TensorRT can run just on Nvidia machines. "
              "No available cuda driver has been found."
          )
      path = Path(__file__).parent
      installation_file = str(path / "install_tensor_rt.sh")
      subprocess.run(["bash", installation_file])
  
      try:
          import polygraphy  # noqa F401
          import tensorrt  # noqa F401
      except ImportError:
          return False
  
      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 7 for calling a global function with example usage: install_tensor_rt() and returns: True, False