<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _generate_field_with_default(**kwargs):
 """Only called if field.default != NOT_PROVIDED"""

        field = kwargs['field']
        if callable(field.default):
            return field.default()
        return field.default