<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __struct_params_str(obj, fmt, f=repr):
 """method wrapper for printing all elements of a struct."""

    return __struct_params_s(obj, '\n', f=f, fmt=fmt)