class_docstr: Metadata about a cached dataset.
class_docstr_tok: ["Metadata","about","a","cached","dataset","."]
code: def encode(self) -> bytes:
      return pickle.dumps(self._asdict(), protocol=0)
  
imports: import os
  import pickle
  import re
  import sys
  from typing import Iterable, Mapping, List, Optional, Union, Tuple
  import apache_beam
  import tensorflow
  from tfx_bsl.types import tfx_namedtuple
label_desc: Use image node_id 1 for calling the DatasetCacheMetadata obj's underlying member method code with example usage: obj.encode() and returns: pickle