class_docstr: Segment info augmented with music metadata.
      
class_docstr_tok: ["Segment","info","augmented","with","music","metadata","."]
code: def to_condition_attributes(self) -> ConditioningAttributes:
      out = ConditioningAttributes()
      for _field in fields(self):
          key, value = _field.name, getattr(self, _field.name)
          if key == "self_wav":
              out.wav[key] = value
          elif key == "joint_embed":
              for embed_attribute, embed_cond in value.items():
                  out.joint_embed[embed_attribute] = embed_cond
          else:
              if isinstance(value, list):
                  value = " ".join(value)
              out.text[key] = value
      return out
  
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 2 for calling the MusicInfo obj's underlying member method code with example usage: obj.to_condition_attributes() and returns: out