code: def create_tensor_func(torch_create_tensor_func):
      def new_create_tensor_func(*args, **kwargs):
          if is_gpu_device(kwargs.get("device")):
              kwargs["device"] = "cpu"
          return torch_create_tensor_func(*args, **kwargs)
  
      return new_create_tensor_func
  
imports: import os
  import torch
  from logging import warning
  from bigdl.nano.utils.pytorch import TORCH_VERSION_LESS_1_10
label_desc: Use image node_id 10 for calling a global function with example usage: create_tensor_func(torch_create_tensor_func) and returns: new_create_tensor_func, torch_create_tensor_func