class_docstr: Mixin that provides save and load functionalities.
docstr: Save internal states.
docstr_tok: ["Save","internal","states","."]
code: def save(self, dirname: str) -> None:
      """Save internal states."""
      self.__save(dirname, [])
  
imports: import contextlib
  import os
  from abc import ABCMeta, abstractmethod, abstractproperty
  from typing import Any, List, Optional, Sequence, Tuple
  import torch
label_desc: Use image node_id 2 for calling the AttributeSavingMixin obj's underlying member method code with example usage: obj.save(dirname) without return types