code: def getAnalysisMetadata(pool):
      descriptorNames = pool.descriptorNames()
      if "metadata.audio_properties.replay_gain" in descriptorNames:
          rgain = pool["metadata.audio_properties.replay_gain"]
      else:
          INFO("Warning: replay gain was not found in pool. Using 0.")
          rgain = 0
      if (
          "metadata.audio_properties.analysis_sample_rate"
          in descriptorNames
      ):
          sampleRate = pool[
              "metadata.audio_properties.analysis_sample_rate"
          ]
      else:
          INFO(
              "Warning: analysis sample rate was not found in pool. Using ",
              analysisSampleRate,
          )
          sampleRate = analysisSampleRate
      if "metadata.audio_properties.downmix" in descriptorNames:
          downmix = pool["metadata.audio_properties.downmix"]
      else:
          INFO("Warning: downmix was not found in pool. Using 'mix'")
          downmix = "mix"
      return rgain, sampleRate, downmix
  
imports: import essentia
  from essentia import *
  from essentia.streaming import *
label_desc: Use image node_id 1 for calling a global function with example usage: getAnalysisMetadata(pool) and returns: rgain,  sampleRate,  downmix