'Returns processed information about the function\'s name and file.'

def function_info(self, functionKey):

    node_type = 'function'
    (filename, line_number, function_name) = functionKey
    if (function_name == '<module>'):
        (modulePath, moduleName) = osp.split(filename)
        node_type = 'module'
        if (moduleName == '__init__.py'):
            (modulePath, moduleName) = osp.split(modulePath)
        function_name = (('<' + moduleName) + '>')
    if ((not filename) or (filename == '~')):
        file_and_line = '(built-in)'
        node_type = 'builtin'
    else:
        if (function_name == '__init__'):
            node_type = 'constructor'
        file_and_line = ('%s    :    %d' % (filename, line_number))
    return (filename, line_number, function_name, file_and_line, node_type)
