<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_documented_type_or_fields(self, include_inherited_fields=False):
 """Returns whether this type, or any of its fields, are documented. Use this when deciding whether to create a block of documentation for this type. """

        if self.doc:
            return True
        else:
            return self.has_documented_fields(include_inherited_fields)