code: def test_group_inputs():
      e0 = ops._DataNode("op0", "cpu")
      e1 = ops._DataNode("op1", "cpu")
      inputs = [e0, e1, 10.0, Constant(0).uint8(), 42]
      cat_idx, edges, integers, reals = ops._group_inputs(inputs)
      assert_equal(
          [
              ("edge", 0),
              ("edge", 1),
              ("real", 0),
              ("integer", 0),
              ("integer", 1),
          ],
          cat_idx,
      )
      assert_equal([e0, e1], edges)
      assert_equal([Constant(0).uint8(), 42], integers)
      assert_equal([10.0], reals)
      assert_raises(
          TypeError,
          ops._group_inputs,
          [np.complex()],
          glob="Expected scalar value of type 'bool', 'int' or 'float', got *.",
      )
      _, _, _, none_reals = ops._group_inputs([e0, 10])
      assert_equal(None, none_reals)
  
imports: import nvidia.dali.ops
  from nvidia.dali.types import Constant
  import numpy
  from nose.tools import assert_equal
  from nose_utils import assert_raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_group_inputs() without return types