<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_command(classes):
 """Associates each command class with command depending on setup.cfg """

    commands = {}
    setup_file = os.path.join(
        os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')),
        'setup.cfg')
    for line in open(setup_file, 'r'):
        for cl in classes:
            if cl in line:
                commands[cl] = line.split(' = ')[0].strip().replace('_', ' ')

    return commands