code: def nm(x):
      if not hasattr(x, "node_id"):
          setattr(x, "node_id", counts[type(x)])
          counts[type(x)] += 1
      return x.node_id
  
file_path: tinygrad/tinygrad/graph.py
imports: import os, atexit, functools
  from collections import defaultdict
  from typing import List, Any, DefaultDict
  from tinygrad.ops import UnaryOps, BinaryOps, ReduceOps, MovementOps, LoadOps, BufferOps, TernaryOps, LazyOp, GlobalCounters
  from tinygrad.device import Device
  from tinygrad.helpers import GRAPHPATH, DEBUG, getenv
  from tinygrad.codegen.linearizer import UOps, UOp
  from tinygrad.shape.symbolic import NumNode
label_desc: Use image node_id 3 for calling a global function with example usage: nm(x) and returns: x