code: def enable_tf32():
      if torch.cuda.is_available():
          # enabling benchmark option seems to enable a range of cards to do fp16 when they otherwise can't
          # see https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4407
          device_id = (
              int(shared.cmd_opts.device_id)
              if shared.cmd_opts.device_id is not None
              and shared.cmd_opts.device_id.isdigit()
              else 0
          ) or torch.cuda.current_device()
          if torch.cuda.get_device_capability(device_id) == (
              7,
              5,
          ) and torch.cuda.get_device_name(device_id).startswith(
              "NVIDIA GeForce GTX 16"
          ):
              torch.backends.cudnn.benchmark = True
  
          torch.backends.cuda.matmul.allow_tf32 = True
          torch.backends.cudnn.allow_tf32 = True
  
imports: import sys
  import contextlib
  from functools import lru_cache
  import torch
  from modules import errors, shared
label_desc: Use image node_id 8 for calling a global function with example usage: enable_tf32() without return types