class_docstr: UniqueWithCountTest
code: def _test_unique_with_counts_helper(self, input, output):
      place = fluid.CPUPlace()
      exe = fluid.Executor(place)
      main_program = fluid.Program()
      startup_program = fluid.Program()
      with fluid.program_guard(main_program, startup_program):
          x = fluid.layers.data(
              name="input",
              dtype="int64",
              shape=[-1],
              append_batch_size=False,
          )
          # x = fluid.assign(np.array([2, 3, 3, 1, 5, 3], dtype='int32'))
          out, index, count = fluid.layers.unique_with_counts(x)
  
      out, index, count = exe.run(
          main_program,
          feed={
              "input": np.array(input, dtype="int64"),
          },
          fetch_list=[out, index, count],
          return_numpy=True,
      )
      out, index, count = out.tolist(), index.tolist(), count.tolist()
      assert [out, index, count] == output
  
imports: import unittest
  import numpy
  import paddle.fluid
label_desc: Use image node_id 1 for calling the UniqueWithCountTest obj's underlying member method code with example usage: obj._test_unique_with_counts_helper(input, output) without return types