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: Compute the dimensionality of the recursive dict as the length of
  the flattened dict.
docstr_tok: ["Compute","the","dimensionality","of","the","recursive","dict","as","the","length","of","the","flattened","dict","."]
code: def __len__(self):
      """Compute the dimensionality of the recursive dict as the length of
      the flattened dict.
      """
      return self._ndim
  
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 6 for calling the _RecursiveDict obj's underlying member method code with example usage: obj.__len__() and returns: self