code: def check_is_tensor(*data):
      """Check if the given datas have paddle.Tensor"""
      for d in data:
          if isinstance(d, paddle.Tensor) or isinstance(d, Variable):
              return True
      return False
  
file_path: PGL/pgl/utils/helper.py
imports: import numpy
  import paddle
  from paddle.common_ops_import import Variable
  from paddle.framework import core
  from pgl.utils import op
label_desc: Use image node_id 1 for calling a global function with example usage: check_is_tensor() and returns: False, True