code: def get_default_serializer() -> Serializer:
      """Get the default serializer.
  
      Returns
      -------
      The default serializer.
      """
      if _default_serializer is None:
          set_default_serializer(TorchSerializer())
      return cast(Serializer, _default_serializer)
  
file_path: nni/nni/nas/utils/serializer.py
imports: from __future__ import annotations
  import logging
  from pathlib import Path
  from typing import Any, ClassVar, Type, cast
label_desc: Use image node_id 2 for calling a global function with example usage: get_default_serializer() and returns: cast