code: def choose(is_accepted, proposed, current, name=None):
      """Helper which expand_dims `is_accepted` then applies tf.where."""
      return _choose_recursive(
          is_accepted, proposed, current, name=name
      )
  
imports: import warnings
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math.gradient import value_and_gradient
  from tensorflow.python.util import deprecation
label_desc: Use image node_id 7 for calling a global function with example usage: choose(is_accepted, proposed, current, name) and returns: _choose_recursive