code: def install_deepsparse():
      """Helper function for installing DeepSparse."""
      python_minor_version = sys.version_info.minor
  
      os_ = platform.system()
      if os_ in ["Darwin", "Windows"] or get_cpu_arch() == "arm":
          raise RuntimeError(
              "DeepSparse is not supported on this platform. "
              "It won't be installed."
          )
  
      try:
          cmd = [
              "apt-get",
              "install",
              f"python3.{python_minor_version}-venv",
          ]
          subprocess.run(cmd)
      except Exception:
          pass
  
      cmd = ["pip3", "install", "deepsparse"]
      subprocess.run(cmd)
  
      try:
          cmd = ["pip3", "install", "numpy>=1.22.0,<1.24.0"]
          subprocess.run(cmd)
      except Exception:
          # For python 3.7 numpy 1.22.0 is not available
          pass
  
      try:
          from deepsparse import compile_model, cpu  # 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 10 for calling a global function with example usage: install_deepsparse() and returns: True, False