code: def make_median(q2):
      """
      Formats the 'median' hovertext for a violin plot.
      """
      return graph_objs.Scatter(
          x=[0],
          y=[q2],
          text=["median: " + "{:0.2f}".format(q2)],
          mode="markers",
          marker=dict(symbol="square", color="rgb(255,255,255)"),
          hoverinfo="text",
      )
  
file_path: catboost/contrib/python/plotly/py3/plotly/figure_factory/_violin.py
imports: from numbers import Number
  from plotly import exceptions, optional_imports
  import plotly.colors
  from plotly.graph_objs import graph_objs
  from plotly.subplots import make_subplots
label_desc: Use image node_id 6 for calling a global function with example usage: make_median(q2) and returns: graph_objs