code: def _get_conv_transpose_fn(method):
      if method == "subkernels":
          return (
              convolution_util.make_convolution_transpose_fn_with_subkernels
          )
      elif method == "subkernels_matrix":
          return (
              convolution_util.make_convolution_transpose_fn_with_subkernels_matrix
          )
      elif method == "dilation":
          return (
              convolution_util.make_convolution_transpose_fn_with_dilation
          )
      else:
          raise ValueError(
              "Unsupported method for `_get_conv_transpose_fn`: {}."
              "".format(method)
          )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.nn.util import convolution_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
label_desc: Use image node_id 2 for calling a global function with example usage: _get_conv_transpose_fn(method) and returns: convolution_util, convolution_util, convolution_util