class_docstr: A default renderer for .format'ed output line
      
class_docstr_tok: ["A","default","renderer","for",".format'ed","output","line"]
docstr: Traverse datastructure and replace any regular dict with nadict
docstr_tok: ["Traverse","datastructure","and","replace","any","regular","dict","with","nadict"]
code: def _dict_to_nadict(cls, v):
      """Traverse datastructure and replace any regular dict with nadict"""
      if isinstance(v, list):
          return [cls._dict_to_nadict(x) for x in v]
      elif isinstance(v, dict):
          return nadict(
              (k, cls._dict_to_nadict(x)) for k, x in v.items()
          )
      else:
          return v
  
imports: from collections import defaultdict
  import string
  from datalad.ui import ui
label_desc: Use image node_id 2 for calling the DefaultOutputRenderer obj's underlying member method code with example usage: obj._dict_to_nadict(cls, v) and returns: unknown, nadict, v