class_docstr: Utility class containing functions to load cluster assignments from files
  and visualize them or export them to different formats
class_docstr_tok: ["Utility","class","containing","functions","to","load","cluster","assignments","from","files","and","visualize","them","or","export","them","to","different","formats"]
code: def save_cluster_assignment(
      cls, output_dir: str, assignments: ClusterAssignment
  ):
      output_file = os.path.join(
          output_dir, "cluster_assignments.torch"
      )
      with g_pathmgr.open(output_file, "wb") as f:
          content = {
              cls._CONFIG_KEY: assignments.config,
              cls._ASSIGN_KEY: assignments.cluster_assignments,
          }
          torch.save(content, f)
  
file_path: vissl/vissl/utils/cluster_utils.py
imports: import os
  from dataclasses import dataclass
  from typing import Dict, List
  import numpy
  import torch
  from iopath.common.file_io import g_pathmgr
  from vissl.config import AttrDict
  from vissl.data import build_dataset
label_desc: Use image node_id 1 for calling the ClusterAssignmentLoader obj's underlying member method code with example usage: obj.save_cluster_assignment(cls, output_dir, assignments) without return types