docstr: Compares the output of reduce_join to an expected result.
  
  Args:
    input_array: The string input to be joined.
    truth: An array or np.array of the expected result.
    truth_shape: An array or np.array of the expected shape.
    axis: The indices to reduce over.
    keep_dims: Whether or not to retain reduced dimensions.
    separator: The separator to use for joining.
docstr_tok: ["Compares","the","output","of","reduce_join","to","an","expected","result",".","Args",":","input_array",":","The","string","input","to","be","joined",".","truth",":","An","array","or","np.array","of","the","expected","result",".","truth_shape",":","An","array","or","np.array","of","the","expected","shape",".","axis",":","The","indices","to","reduce","over",".","keep_dims",":","Whether","or","not","to","retain","reduced","dimensions",".","separator",":","The","separator","to","use","for","joining","."]
code: def _testReduceJoin(
      self,
      input_array,
      truth,
      truth_shape,
      axis,
      keep_dims=False,
      separator="",
  ):
      """Compares the output of reduce_join to an expected result.
  
      Args:
        input_array: The string input to be joined.
        truth: An array or np.array of the expected result.
        truth_shape: An array or np.array of the expected shape.
        axis: The indices to reduce over.
        keep_dims: Whether or not to retain reduced dimensions.
        separator: The separator to use for joining.
      """
      with self.cached_session():
          output = string_ops.reduce_join(
              inputs=input_array,
              axis=axis,
              keep_dims=keep_dims,
              separator=separator,
          )
          output_array = self.evaluate(output)
  
      self.assertAllEqualUnicode(truth, output_array)
      self.assertAllEqual(truth_shape, output.get_shape())
  
imports: import itertools
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the ReduceJoinTest obj's underlying member method code with example usage: obj._testReduceJoin(input_array, truth, truth_shape, axis, keep_dims, separator) without return types