human
Solve the following python programming problem given the following code:
def __new__(cls, name, bases, namespace, **kwargs) : 
    def generate_test(name, examples, expected_) : 
        def test(self) : 
            if isinstance (expected_, (str, tuple)) : 
                expected = [expected_] 
else : 
                expected = expected_ 
if (not isinstance (examples, list)) : 
                examples_ = [examples] 
else : 
                examples_ = examples 
for (example, exp) in zip (examples_, expected) : 
                if (isinstance (example, tuple) and (example [0] == 'custom_exceptions')) : 
                    (custom_exceptions, example_) = (example [1], example [2]) 
else : 
                    custom_exceptions = [] 
                    example_ = (example if (not isinstance (example, list)) else example [:]) 
if isinstance (exp, str) : 
                    self.assertEqual (self.gen (custom_exceptions, example_), exp) 
else : 
                    if (exp [0] == 'raw') : 
                        self.assertEqual (self.gen (custom_exceptions, example_), exp) 
else : 
                        (imports, source) = self.gen_with_imports (custom_exceptions, example_) 
                        self.assertCountEqual (imports, exp [0]) 
                        self.assertEqual (source, exp [1]) 
return test 
types = list (namespace.keys ()) 
    for name in types : 
        exp = namespace [name] 
        if (name.startswith ('gen') or (name [0] == '_')) : 
            continue 
if (name [(- 1)] == '_') : 
            name = name [: (- 1)] 
examples = globals ().get (name.title ().replace ('_', '')) 
        if examples : 
            test_name = ('test_%s' % name) 
            namespace [test_name] = generate_test (name, examples, exp) 
if ('gen' not in exp) : 
        namespace ['gen'] = TestHelpers.gen 
if ('gen_with_imports' not in namespace) : 
        namespace ['gen_with_imports'] = TestHelpers.gen_with_imports 
namespace ['maxDiff'] = None 
    return super ().__new__ (cls, name, bases, namespace) 

    
    

    Fix the buggy line: if ('gen' not in exp) :
assistant
#Here is Python program to fix the buggy line: if ('gen' not in exp) :
.

if ('gen' not in namespace) :