class_docstr: Helper base class for the :class:`Domain` and :class:`Sample` classes.
  
  It implements common logic for creation, representation, type conversion
  and serialisation.
class_docstr_tok: ["Helper","base","class","for","the",":","class",":","`","Domain","`","and",":","class",":","`","Sample","`","classes",".","It","implements","common","logic","for","creation",",","representation",",","type","conversion","and","serialisation","."]
docstr: Deserialise a serialised :class:`_RecursiveDict` object from a byte
  stream or file.
  
  Args:
      series: :obj:`str`. The serialised :class:`_RecursiveDict` object or
          a filepath to it.
  
  Returns:
      A :class:`_RecursiveDict` object.
docstr_tok: ["Deserialise","a","serialised",":","class",":","`","_RecursiveDict","`","object","from","a","byte","stream","or","file",".","Args",":","series",":",":","obj",":","`","str","`",".","The","serialised",":","class",":","`","_RecursiveDict","`","object","or","a","filepath","to","it",".","Returns",":","A",":","class",":","`","_RecursiveDict","`","object","."]
code: def deserialise(cls, series):
      """Deserialise a serialised :class:`_RecursiveDict` object from a byte
      stream or file.
  
      Args:
          series: :obj:`str`. The serialised :class:`_RecursiveDict` object or
              a filepath to it.
  
      Returns:
          A :class:`_RecursiveDict` object.
      """
      if not isinstance(series, (bytes, bytearray)) and os.path.isfile(
          series
      ):
          with open(series, "rb") as fp:
              return cls(pickle.load(fp))
      return cls(pickle.loads(series))
  
imports: import ast
  import copy
  import os
  import pickle
  import random
  from collections import namedtuple
  from typing import Tuple
label_desc: Use image node_id 13 for calling the _RecursiveDict obj's underlying member method code with example usage: obj.deserialise(cls, series) and returns: cls, cls