code: def set_default_serializer(serializer: Serializer) -> None:
      """Set the default serializer.
  
      Parameters
      ----------
      serializer
          The serializer to be used as default.
      """
      global _default_serializer
      _default_serializer = 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 1 for calling a global function with example usage: set_default_serializer(serializer) without return types