def _add_classes_to_globals(globals):
    for class_name, class_dict in graph_reference.CLASSES.items():
        object_name = class_dict['object_name']
        base_type = class_dict['base_type']

        # This is for backwards compat (e.g., Trace) and future changes.
        if object_name is None:
            globals[class_name] = base_type
            continue

        doc = graph_objs_tools.get_help(object_name)
        if object_name in graph_reference.ARRAYS:
            class_bases = (PlotlyList, )
        else:
            class_bases = (PlotlyDict, )

        class_dict = {'__doc__': doc, '__name__': class_name,
                      '_name': object_name}

        cls = type(str(class_name), class_bases, class_dict)

        globals[class_name] = cls
Run the script environment.
dataset/ETHPy150Open plotly/plotly.py/plotly/graph_objs/graph_objs.py/_add_classes_to_globals--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/alembic/script.py/ScriptDirectory.run_env