code: def make_usage_counting_identity(var):
      key = (id(var), var.name)
  
      def _id(x):
          VAR_USAGES[key] = VAR_USAGES.get(key, []) + [
              traceback.format_stack(limit=25)
          ]
          return tf.identity(x)
  
      return _id
  
imports: import contextlib
  import os
  import re
  import traceback
  import unittest
  import hypothesis
  from hypothesis.extra import numpy
  import hypothesis.strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.util.deferred_tensor import DeferredTensor
label_desc: Use image node_id 9 for calling a global function with example usage: make_usage_counting_identity(var) and returns: _id, tf