<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_context(name, doc):
 """Generate a command with given name. The command can be run immediately after generation. For example: dj generate command bar dj run manage.py bar """

    name = inflection.underscore(name)
    return {
        'name': name,
        'doc': doc or name
    }