<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def namespace_to_dict(o):
 """Convert an argparse namespace object to a dictionary."""

    d = {}
    for k, v in o.__dict__.items():
        if not callable(v):
            d[k] = v
    return d