class_docstr: Segment info augmented with Sound 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
          else:
              out.text[key] = value
      return out
  
imports: from dataclasses import dataclass, fields, replace
  import json
  from pathlib import Path
  import random
  import typing
  import numpy
  import torch
  from .info_audio_dataset import InfoAudioDataset, get_keyword_or_keyword_list
  from ..modules.conditioners import ConditioningAttributes, SegmentWithAttributes, WavCondition
label_desc: Use image node_id 2 for calling the SoundInfo obj's underlying member method code with example usage: obj.to_condition_attributes() and returns: out