class_docstr: Base ModelOutput class fixing the output type from the models. This class is inspired from
  the ``ModelOutput`` class from hugginface transformers library
class_docstr_tok: ["Base","ModelOutput","class","fixing","the","output","type","from","the","models",".","This","class","is","inspired","from","the","``","ModelOutput","``","class","from","hugginface","transformers","library"]
docstr: Convert self to a tuple containing all the attributes/keys that are not ``None``.
docstr_tok: ["Convert","self","to","a","tuple","containing","all","the","attributes\/keys","that","are","not","``","None","``","."]
code: def to_tuple(self) -> Tuple[Any]:
      """
      Convert self to a tuple containing all the attributes/keys that are not ``None``.
      """
      return tuple(self[k] for k in self.keys())
  
file_path: benchmark_VAE/src/pythae/models/base/base_utils.py
imports: import importlib
  import io
  import logging
  from collections import OrderedDict
  from typing import Any, Tuple
  import torch
label_desc: Use image node_id 4 for calling the ModelOutput obj's underlying member method code with example usage: obj.to_tuple() and returns: tuple