code: def testIdentityModel(self):
      # Perform the identity operation in Tensorflow to test if the data is
      # being copied correctly backwards and fordwards.
      model = join(filedir(), "tensorflowpredict", "identity.pb")
      filename = join(testdata.audio_dir, "recorded", "cat_purrrr.wav")
  
      audio = MonoLoader(filename=filename)()
      frames = array([frame for frame in FrameGenerator(audio)])
      batch = frames[numpy.newaxis, numpy.newaxis, :]
  
      pool = Pool()
      pool.set("model/Placeholder", batch)
  
      poolOut = TensorflowPredict(
          graphFilename=model,
          inputs=["model/Placeholder"],
          outputs=["model/Identity"],
      )(pool)
  
      foundValues = poolOut["model/Identity"]
  
      self.assertAlmostEqualMatrix(foundValues, batch)
  
file_path: essentia/test/src/unittests/machinelearning/test_tensorflowpredict.py
imports: from essentia_test import *
  import sys
  import os
label_desc: Use image node_id 7 for calling the TestTensorFlowPredict obj's underlying member method code with example usage: obj.testIdentityModel() without return types