code: def autocast(disable=False):
      if disable:
          return contextlib.nullcontext()
  
      if dtype == torch.float32 or shared.cmd_opts.precision == "full":
          return contextlib.nullcontext()
  
      return torch.autocast("cuda")
  
imports: import sys
  import contextlib
  from functools import lru_cache
  import torch
  from modules import errors, shared
label_desc: Use image node_id 11 for calling a global function with example usage: autocast(disable) and returns: torch, contextlib, contextlib