code: def _names_with_values(names, values):
      li = []
      for name, value in zip(names, values):
          if value == "":
              li.append("{0}".format(name))
          elif isinstance(value, Number):
              li.append("{0} ({1:.2f})".format(name, value))
          else:
              li.append("{0} ({1})".format(name, value))
  
      return li
  
imports: import plotly.graph_objs
  import numpy
  from plotly import subplots
  import matplotlib.pyplot
  from numbers import Number
  import logging
label_desc: Use image node_id 12 for calling a global function with example usage: _names_with_values(names, values) and returns: li