code: def is_models_name_lookup_attribute(self, base):
          
          return (
              isinstance(base, ast.Attribute) and
              isinstance(base.value, ast.Name) and
              base.value.id == 'models' and base.attr == self.model_name_lookup
          )
docs: Return True if class is defined as the respective model name lookup declaration