code: def tensors_allocated():
      return sum([isinstance(x, Tensor) for x in gc.get_objects()])
  
file_path: tinygrad/test/test_gc.py
imports: import gc
  import unittest
  import numpy
  from tinygrad.tensor import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: tensors_allocated() and returns: sum