code: def format_value(s, format_str):
      """Strips trailing zeros and uses a unicode minus sign."""
  
      if not issubclass(type(s), str):
          s = format_str % s
      s = re.sub(r"\.?0+$", "", s)
      if s[0] == "-":
          s = "\u2212" + s[1:]
      return s
  
imports: import copy
  import os
  import re
  import sys
  from contextlib import contextmanager
  import numpy
  import pandas
  import scipy.special
  import sklearn
label_desc: Use image node_id 10 for calling a global function with example usage: format_value(s, format_str) and returns: s