code: def _add_tensor_ops(klass):
      for op_name in AVAILABLE_TENSOR_OPS:
          overload_name = "__%s__" % op_name
  
          if getattr(klass, overload_name, None):
              raise ValueError(
                  'class "%s" already has operator overload "%s"'
                  % (klass, overload_name)
              )
  
          setattr(
              klass,
              overload_name,
              TensorOpsMixin.__dict__[overload_name],
          )
  
imports: import warnings
  from scipy import sparse
label_desc: Use image node_id 1 for calling a global function with example usage: _add_tensor_ops(klass) without return types