code: def create_default_indicator(name: str, value: any, is_print: bool):
      if isinstance(value, int) or isinstance(value, float):
          return Scalar(name, is_print)
      elif isinstance(value, np.number):
          return Scalar(name, is_print)
      elif isinstance(value, list):
          return Scalar(name, is_print)
      elif isinstance(value, np.ndarray):
          return Scalar(name, is_print)
  
      try:
          import torch
  
          if isinstance(value, torch.nn.parameter.Parameter):
              return Scalar(name, is_print)
          elif isinstance(value, torch.Tensor):
              return Scalar(name, is_print)
      except ImportError:
          pass
  
      try:
          import jaxlib
          from jaxlib.xla_extension import DeviceArray
  
          if isinstance(value, DeviceArray):
              return Scalar(name, is_print)
      except ImportError:
          pass
  
      raise ValueError(f"Unknown type {type(value)}")
  
imports: from typing import Dict
  import numpy
  from .numeric import Histogram, Scalar
label_desc: Use image node_id 2 for calling a global function with example usage: create_default_indicator(name, value, is_print) and returns: Scalar, Scalar, Scalar, Scalar, Scalar, Scalar, Scalar