code: def interpolate_with_fp32_fallback(
      orig_func, *args, **kwargs
  ) -> Tensor:
      try:
          return orig_func(*args, **kwargs)
      except RuntimeError as e:
          if "not implemented for" in str(e) and "Half" in str(e):
              input_tensor = args[0]
              return orig_func(
                  input_tensor.to(torch.float32), *args[1:], **kwargs
              ).to(input_tensor.dtype)
          else:
              print(f"An unexpected RuntimeError occurred: {str(e)}")
  
file_path: stable-diffusion-webui/modules/mac_specific.py
imports: import logging
  import torch
  from torch import Tensor
  import platform
  from modules.sd_hijack_utils import CondFunc
  from packaging import version
  from modules import shared
label_desc: Use image node_id 4 for calling a global function with example usage: interpolate_with_fp32_fallback(orig_func) and returns: orig_func, orig_func