def _list_help(object_name, path=(), parent_object_names=()):
    items = graph_reference.ARRAYS[object_name]['items']
    items_classes = [graph_reference.string_to_class_name(item)
                     for item in items]
    lines = textwrap.wrap(repr(items_classes), width=LINE_SIZE-TAB_SIZE)

    help_dict = {
        'object_name': object_name,
        'path_string': '[' + ']['.join(repr(k) for k in path) + ']',
        'parent_object_names': parent_object_names,
        'items_string': '\t' + '\n\t'.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().
dataset/ETHPy150Open plotly/plotly.py/plotly/graph_objs/graph_objs_tools.py/_list_help