class_docstr: Segment info augmented with music metadata.
      
class_docstr_tok: ["Segment","info","augmented","with","music","metadata","."]
code: def attribute_getter(attribute):
      if attribute == "bpm":
          preprocess_func = get_bpm
      elif attribute == "key":
          preprocess_func = get_musical_key
      elif attribute in ["moods", "keywords"]:
          preprocess_func = get_keyword_list
      elif attribute in ["genre", "name", "instrument"]:
          preprocess_func = get_keyword
      elif attribute in ["title", "artist", "description"]:
          preprocess_func = get_string
      else:
          preprocess_func = None
      return preprocess_func
  
imports: from dataclasses import dataclass, field, fields, replace
  import gzip
  import json
  import logging
  from pathlib import Path
  import random
  import typing
  import torch
  from .info_audio_dataset import InfoAudioDataset, AudioInfo, get_keyword_list, get_keyword, get_string
  from ..modules.conditioners import ConditioningAttributes, JointEmbedCondition, WavCondition
  from ..utils.utils import warn_once
label_desc: Use image node_id 3 for calling the MusicInfo obj's underlying member method code with example usage: obj.attribute_getter(attribute) and returns: preprocess_func