code: def make_label(var_name, selection, position="below"):
      """Consistent labelling for plots.
  
      Parameters
      ----------
      var_name : str
         Name of the variable
  
      selection : dict[Any] -> Any
          Coordinates of the variable
      position : str
          Whether to position the coordinates' label "below" (default) or "beside"
          the name of the variable
  
      Returns
      -------
      label
          A text representation of the label
      """
      if selection:
          sel = selection_to_string(selection)
          if position == "below":
              base = "{}\n{}"
          elif position == "beside":
              base = "{}[{}]"
      else:
          sel = ""
          base = "{}{}"
      return base.format(var_name, sel)
  
file_path: arviz/arviz/sel_utils.py
imports: from itertools import product, tee
  import numpy
  import xarray
  from .labels import BaseLabeller
label_desc: Use image node_id 2 for calling a global function with example usage: make_label(var_name, selection, position) and returns: base