human
Solve the following python programming problem given the following code:
def construct_case(filename, name) : 
    '
    Parse a definition of a test case from a yaml file and construct the
    TestCase subclass dynamically.
    ' 
    def make_test(test_name, definition, i) : 
        def m(self) : 
            if ((name in SKIP_TESTS.get (self.es_version, ())) or (name in SKIP_TESTS.get ('*', ()))) : 
                raise SkipTest () 
self.run_code (definition) 
m.__doc__ = ('%s:%s.test_from_yaml_%d (%s): %s' % (__name__, name, i, '/'.join (filename.split ('/') [(- 2) :]), test_name)) 
        m.__name__ = ('test_from_yaml_%d' % i) 
        return m 
with open (filename) as f : 
        tests = list (yaml.load_all (f)) 
attrs = { 
        '_yaml_file' : test_name, 
} 
    i = 0 
    for test in tests : 
        for (test_name, definition) in test.items () : 
            if (test_name == 'setup') : 
                attrs ['_setup_code'] = definition 
                continue 
attrs [('test_from_yaml_%d' % i)] = make_test (test_name, definition, i) 
            i += 1 
return type (name, (YamlTestCase,), attrs) 

    
    

    Fix the buggy line: '_yaml_file' : test_name ,
assistant
#Here is Python program to fix the buggy line: '_yaml_file' : test_name ,
.

'_yaml_file' : filename ,