code: def _format_value(value):
      """
      Hyperparameter can have many types, sometimes they can even be lists.
      If one of the value is a float, it has to be compact.
      """
      if isinstance(value, str):
          return value
  
      try:
          return f"[{','.join(_format_value(x) for x in value)}]"
  
      except TypeError:
          if isinstance(value, float):
              return f"{value:.5G}"
          else:
              return value
  
imports: import functools
  from collections.abc import Iterable
  import numpy
  import pandas
  import plotly.express
  import plotly.graph_objects
  from plotly.subplots import make_subplots
  import orion.analysis
  import orion.analysis.base
  from orion.algo.space import Categorical, Fidelity
  from orion.core.worker.transformer import build_required_space
label_desc: Use image node_id 11 for calling a global function with example usage: _format_value(value) and returns: value, str, str, str, value, value