<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_has_defaults(self, struct):
 """Returns whether the given struct has any default values."""

        return [
            f for f in struct.all_fields
            if f.has_default or is_nullable_type(f.data_type)
        ]