code: def add(*args, **kwargs):
      """
      This has multiple overloads
  
      .. function:: add(values: Dict[str, any])
          :noindex:
  
      .. function:: add(name: str, value: any)
          :noindex:
  
      .. function:: add(**kwargs: any)
          :noindex:
  
      This add tracking information to a temporary queue.
      These will be saved when :func:`labml.tracker.save` is called.
  
      You should use :func:`labml.tracker.add` to improve performance since
      saving tracking information consumes time.
      Although saving takes negligible amount of time it can add up if called very frequently.
  
      Arguments:
          values (Dict[str, any]): A dictionary of key-value pairs to track
          name (str): The name of the value to be tracked
          value (any): The value to be tracked
          kwargs: Key-value pairs to track
      """
      if len(args) > 2:
          raise TypeError(
              "tracker.add should be called as add(name, value), add(dictionary) or add(k=v,k2=v2...)"
          )
  
      if len(args) == 0:
          _add_dict(kwargs)
      elif len(args) == 1:
          if kwargs:
              raise TypeError(
                  "tracker.add should be called as add(name, value), add(dictionary) or add(k=v,k2=v2...)"
              )
          if not isinstance(args[0], dict):
              raise TypeError(
                  "tracker.add should be called as add(name, value), add(dictionary) or add(k=v,k2=v2...)"
              )
          _add_dict(args[0])
      elif len(args) == 2:
          if kwargs:
              raise TypeError(
                  "tracker.add should be called as add(name, value), add(dictionary) or add(k=v,k2=v2...)"
              )
          if not isinstance(args[0], str):
              raise TypeError(
                  "tracker.add should be called as add(name, value), add(dictionary) or add(k=v,k2=v2...)"
              )
          _internal().store(args[0], args[1])
  
imports: from typing import Dict, overload, Optional
  from labml.internal.tracker import tracker_singleton
label_desc: Use image node_id 10 for calling a global function with example usage: add() without return types