code: def realVectorTest(self, nVectors, N, M):
      #### Reals ###
      inputReals = []
      expectedReals = []
      for n in range(N):
          inputReals.append(
              [float(i) for i in range(n * M, (n + 1) * M)]
          )
  
      for m in range(M):
          expectedReals.append(list(range(m, N * M, M)))
  
      genReals = [VectorInput(input) for input in inputReals]
  
      #### Vectors ###
  
      inputVectors = zeros([nVectors, N, M])
      expectedVectors = zeros([N, M * nVectors])
  
      for i in range(nVectors):
          for n in range(N):
              for m in range(M):
                  inputVectors[i][n][m] = m + n * M + i * N * M
  
      for n in range(N):
          for i in range(nVectors):
              for m in range(M):
                  expectedVectors[n][m + i * M] = inputVectors[i][n][m]
      genVectors = [VectorInput(array(input)) for input in inputVectors]
  
      ### expected result ###
      expected = []
      for exp in expectedReals:
          expected.append(exp)
      for i in range(len(expectedVectors)):
          for exp in expectedVectors[i]:
              expected[i].append(exp)
  
      ### network ###
      mux = Multiplexer(
          numberRealInputs=N, numberVectorRealInputs=nVectors
      )
      portReals = []
      for i in range(N):
          portReals.append(getattr(mux, "real_" + str(i)))
          genReals[i].data >> portReals[i]
  
      portVectors = []
      for i in range(nVectors):
          portVectors.append(getattr(mux, "vector_" + str(i)))
          genVectors[i].data >> portVectors[i]
  
      pool = Pool()
      mux.data >> (pool, "realvector")
      for gen in genReals:
          run(gen)
      for gen in genVectors:
          run(gen)
  
      if not N or not nVectors:
          self.assertEqual(pool.descriptorNames(), [])
          return
  
      if not M:
          expected = [[], [], [], [], []]
  
      self.assertEqualMatrix(pool["realvector"], expected)
  
file_path: essentia/test/src/unittests/standard/test_multiplexer_streaming.py
imports: from essentia_test import *
  from essentia.streaming import Multiplexer
label_desc: Use image node_id 3 for calling the TestMultiplexer_Streaming obj's underlying member method code with example usage: obj.realVectorTest(nVectors, N, M) without return types