def _list_help(object_name, path=(), parent_object_names=()):
 items = graph_reference.ARRAYS[object_name]['items']
 items_classes = set()
 for item in items:
  if (item in graph_reference.OBJECT_NAME_TO_CLASS_NAME):
   items_classes.add(graph_reference.string_to_class_name(item))
  else:
   items_classes.add('dict')
 items_classes = list(items_classes)
 items_classes.sort()
 lines = textwrap.wrap(repr(items_classes), width=((LINE_SIZE - TAB_SIZE) - 1))
 help_dict = {'object_name': object_name, 'path_string': (('[' + ']['.join((repr(k) for k in path))) + ']'), 'parent_object_names': parent_object_names, 'items_string': (' DCTB ' + '\n DCTB '.join(lines))}
 return "Valid items for '{object_name}' at path {path_string} under parents {parent_object_names}:\n{items_string}\n".format(**help_dict)

def _list_help ( object_name , path = ( ) , parent_object_names = ( ) ) : items = graph_reference . ARRAYS [ object_name ] [ 'items' ] items_classes = set ( ) for item in items : if ( item in graph_reference . OBJECT_NAME_TO_CLASS_NAME ) : items_classes . add ( graph_reference . string_to_class_name ( item ) ) else : items_classes . add ( 'dict' ) items_classes = list ( items_classes ) items_classes . sort ( ) lines = textwrap . wrap ( repr ( items_classes ) , width = ( ( LINE_SIZE - TAB_SIZE ) - 1 ) ) help_dict = { 'object_name' : object_name , 'path_string' : ( ( '[' + '][' . join ( ( repr ( k ) for k in path ) ) ) + ']' ) , 'parent_object_names' : parent_object_names , 'items_string' : ( ' DCTB ' + '\n DCTB ' . join ( lines ) ) } return "Valid items for '{object_name}' at path {path_string} under parents {parent_object_names}:\n{items_string}\n" . format ( ** help_dict )
see get_help() .