code: def set_scalar(name: str, is_print: bool = False):
      """
      Set indicator type to be a scalar.
      It will log a scalar of the tracked values.
      If there are multiple values it will log the mean.
  
      Arguments:
          name (str): Name of the indicator
          is_print: (bool, optional): Whether the indicator should be printed in console.
              Defaults to ``False``.
      """
      from labml.internal.tracker.indicators.numeric import Scalar
  
      _internal().add_indicator(Scalar(name, is_print))
  
imports: from typing import Dict, overload, Optional
  from labml.internal.tracker import tracker_singleton
label_desc: Use image node_id 5 for calling a global function with example usage: set_scalar(name, is_print) without return types