<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _output_tags(self):
 """Look for a Tags object to output a Tags import"""

        for class_name, properties in sorted(self.resources.items()):
            for key, value in sorted(properties.items()):
                validator = self.override.get_validator(class_name, key)
                if key == 'Tags' and validator is None:
                    print("from troposphere import Tags")
                    return
        for class_name, properties in sorted(self.properties.items()):
            for key, value in sorted(properties.items()):
                validator = self.override.get_validator(class_name, key)
                if key == 'Tags' and validator is None:
                    print("from troposphere import Tags")
                    return