code: def fmt_badge(value: str) -> str:
      return re.sub(
          r"\((\d+)\)", r'<span class="badge">\1</span>', value
      )
  
imports: import decimal
  import math
  import re
  from datetime import timedelta
  from typing import Any, Callable, Dict, List, Optional, Union
  import numpy
  import pandas
  from markupsafe import escape
label_desc: Use image node_id 14 for calling a global function with example usage: fmt_badge(value) and returns: re