human
Solve the following python programming problem given the following code:
@ any_field.register (models.FileField) 
def any_file_field(field, **kwargs) : 
    '
    Lookup for nearest existing file

    ' 
    def get_some_file(path) : 
        (subdirs, files) = field.storage.listdir (path) 
        if files : 
            result_file = random.choice (files) 
            instance = field.storage.open (('%s/%s' % (path, result_file))).file 
            return FieldFile (instance, field, result_file) 
for subdir in subdirs : 
            result = get_some_file (('%s/%s' % (path, subdir))) 
            if result : 
                return result 
result = get_some_file (kwargs.upload_to) 
    if ((result is None) and (not field.null)) : 
        raise TypeError (("Can't found file in %s for non nullable FileField" % field.upload_to)) 
return result 

    
    

    Fix the buggy line: result = get_some_file (kwargs.upload_to)
assistant
#Here is Python program to fix the buggy line: result = get_some_file (kwargs.

result = get_some_file (field.upload_to)