code: def _check_data_type(data):
      if isinstance(data, torch.Tensor):
          return
      else:
          for x in data:
              if isinstance(x, tuple):
                  _check_data_type(x)
                  continue
              if not isinstance(x, torch.Tensor):
                  invalidInputError(False, "expect torch.Tensor here")
  
imports: import torch
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: _check_data_type(data) without return types