code: def constant_program():
      """Constant program: 'ans=1; ans=2; return ans;'.
  
      Returns:
        program: `instructions.Program` which returns a constant value.
      """
      constant_block = instructions.Block(
          [
              instructions.prim_op([], "answer", lambda: 1),
              instructions.prim_op([], "answer", lambda: 2),
          ],
          instructions.halt_op(),
      )
  
      constant_vars = {
          "answer": instructions.single_type(np.int64, ()),
      }
  
      return instructions.Program(
          instructions.ControlFlowGraph([constant_block]),
          [],
          constant_vars,
          ["answer"],
          "answer",
      )
  
file_path: probability/tensorflow_probability/python/experimental/auto_batching/test_programs.py
imports: import numpy
  from tensorflow_probability.python.experimental.auto_batching import instructions
label_desc: Use image node_id 1 for calling a global function with example usage: constant_program() and returns: instructions