code: def type_name(value):
      
      return type(value).__name__ if isinstance(value, EncapsulatedNode) else \
             "struct" if isinstance(value, dict) else \
             "sequence" if isinstance(value, (tuple, list)) else \
             type(value).__name__
docs: Returns pseudo-YAML type name of given value.