

def __setitem__(self, graph_class, some_strs):
    '\n        Set a simple bit of code and setup string for the test.\n        Use this for cases where the code differs from one class to another.\n        '
    (test_str, setup_str) = some_strs
    if (graph_class == 'all'):
        graph_class = self.class_tests.keys()
    elif (not isinstance(graph_class, list)):
        graph_class = [setup_str]
    for GC in graph_class:
        setup_string = (('import networkx as NX\nG=NX.%s()\n' % (GC,)) + setup_str)
        self.class_tests[GC] = Timer(test_str, setup_string)

dataset/ETHPy150Open networkx/networkx/networkx/tests/benchmark.py Benchmark.__setitem__/VarMisuse@60/143 `graph_class`->`setup_str`