code: def round_num(n, round_to):
      """
      Return a string representing a number with `round_to` significant figures.
  
      Parameters
      ----------
      n : float
          number to round
      round_to : int
          number of significant figures
      """
      sig_figs = format_sig_figs(n, round_to)
      return "{n:.{sig_figs}g}".format(n=n, sig_figs=sig_figs)
  
imports: import importlib
  import warnings
  from typing import Any, Dict
  import matplotlib
  import numpy
  import packaging
  from matplotlib.colors import to_hex
  from scipy.stats import mode, rankdata
  from scipy.interpolate import CubicSpline
  from ..rcparams import rcParams
  from ..stats.density_utils import kde
  from ..stats import hdi
label_desc: Use image node_id 5 for calling a global function with example usage: round_num(n, round_to) and returns: str