code: def build_tree_uturn_instruction(max_depth, init_memory=0):
      """Run build tree and output the u turn checking input instruction."""
  
      def _buildtree(address, depth):
          if depth == 0:
              address += 1
              return address, address
          else:
              address_left, address_right = _buildtree(
                  address, depth - 1
              )
              _, address_right = _buildtree(address_right, depth - 1)
              instruction.append((address_left, address_right))
              return address_left, address_right
  
      instruction = []
      _, _ = _buildtree(init_memory, max_depth)
      return np.unique(np.array(instruction, dtype=np.int32), axis=0)
  
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.mcmc import preconditioning_utils
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import distribute_lib
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math.generic import log_add_exp
  from tensorflow_probability.python.mcmc.internal import leapfrog_integrator
  from tensorflow_probability.python.mcmc.internal import util
  from tensorflow_probability.python.mcmc.kernel import TransitionKernel
label_desc: Use image node_id 3 for calling a global function with example usage: build_tree_uturn_instruction(max_depth, init_memory) and returns: np, address,  address, address_left,  address_right