code: def clean_key(descriptors):
      key_mapping = {}
      key_mapping["A"] = 0
      key_mapping["A#"] = 1
      key_mapping["B"] = 2
      key_mapping["C"] = 3
      key_mapping["C#"] = 4
      key_mapping["D"] = 5
      key_mapping["D#"] = 6
      key_mapping["E"] = 7
      key_mapping["F"] = 8
      key_mapping["F#"] = 9
      key_mapping["G"] = 10
      key_mapping["G#"] = 11
  
      key_mapping["major"] = 1
      key_mapping["minor"] = 0
  
      # changing the key scale into a binary value
      descriptors["key_scale"]["value"] = key_mapping[
          descriptors["key_scale"]["value"]
      ]
  
      # removing the key
      descriptors["key_key"]["value"] = key_mapping[
          descriptors["key_key"]["value"]
      ]
  
file_path: essentia/test/src/pythontests/test_extractor.py
imports: import os
  import sys
  import essentia
  import yaml
  import numpy
  from essentia.extractor.extractor import compute
label_desc: Use image node_id 1 for calling a global function with example usage: clean_key(descriptors) without return types