<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_params(model_name: str):
 """Save current global listener params to a file"""

    with open(model_name + '.params', 'w') as f:
        json.dump(pr.__dict__, f)