code: def extended_trait_info(trait):
      if isinstance(trait, Dict):
          return dict_info(trait)
      elif isinstance(trait, Container):
          if trait._trait is None:
              return "{} of any type".format(trait.info())
          return "{} with values that are: {}".format(
              trait.info(), trait._trait.info()
          )
      return trait.info()
  
file_path: pythreejs/docs/sphinxext/autodoc_traits.py
imports: from collections import OrderedDict
  from traitlets import TraitType, Undefined, Container, Dict, Any, HasTraits
  from sphinx.ext.autodoc import ClassDocumenter, AttributeDocumenter
label_desc: Use image node_id 2 for calling a global function with example usage: extended_trait_info(trait) and returns: trait, dict_info, str, str