code: def get_bpm(value: tp.Optional[str]) -> tp.Optional[float]:
      """Preprocess to a float."""
      if value is None:
          return None
      try:
          return float(value)
      except ValueError:
          return None
  
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 a global function with example usage: get_bpm(value) and returns: None, float, None