code: def assertAllocates(self, expected, prog):
      allocated = allocation_strategy.optimize(prog)
      self.assertEqual(expected, allocated.var_alloc)
  
file_path: probability/tensorflow_probability/python/experimental/auto_batching/allocation_strategy_test.py
imports: from tensorflow_probability.python.experimental.auto_batching import allocation_strategy
  from tensorflow_probability.python.experimental.auto_batching import instructions
  from tensorflow_probability.python.experimental.auto_batching import test_programs
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the AllocationStrategyTest obj's underlying member method code with example usage: obj.assertAllocates(expected, prog) without return types