docs: def find_by(cls, **kwargs) -> 'Entity':
          """Find a specific entity record that matches one or more criteria.
  
          :param kwargs: named arguments consisting of attr_name and attr_value pairs to search on
          """
          logger.debug(f'Lookup `{cls.__name__}` object with values '
                       f'{kwargs}')
  
          # Find this item in the repository or raise Error
          results = cls.query.filter(**kwargs).limit(1).all()
  
          if not results:
              raise ObjectNotFoundError(
                  f'`{cls.__name__}` object with values {[item for item in kwargs.items()]} '
                  f'does not exist.')
  
          # Return the first result
          return results.first