code: def check_framework():
      try:
          import torch  # noqa F401
      except ImportError:
          raise ImportError(
              "No PyTorch found in your python environment. Please install "
              "it from https://pytorch.org/get-started/locally/."
          )
  
      if not check_module_version(
          torch, min_version="1.12.0", max_version="2.0.1+cu118"
      ):
          logger.warning(
              "PyTorch version is not supported. Please install "
              "PyTorch >= 1.12.0 and <= 2.0.1."
          )
  
      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 2 for calling the PytorchInstaller obj's underlying member method code with example usage: obj.check_framework() and returns: True