code: def TORCH_DEVICE_MODEL(self) -> str:
      if self.TORCH_DEVICE is not None:
          return self.TORCH_DEVICE
  
      if torch.cuda.is_available():
          return "cuda"
  
      if torch.backends.mps.is_available():
          return "mps"
  
      return "cpu"
  
file_path: pdf-to-markdown/marker/settings.py
imports: import os
  from typing import Optional, List, Dict
  from dotenv import find_dotenv
  from pydantic import computed_field
  from pydantic_settings import BaseSettings
  import fitz
  import torch
label_desc: Use image node_id 1 for calling the Settings obj's underlying member method code with example usage: obj.TORCH_DEVICE_MODEL() and returns: str, self, str, str