code: def find_by(self, values={}, **kwargs):
          
          try:
              return self(
                  **self.select(
                      where=values,
                      limit=1,
                      **kwargs
                      ).to_dict(orient='records')[0]
                  )
          except IndexError:
              return None
docs: Returns a single record matching the criteria in ``values`` found in the model's table in the replica database.
  
          :param values: Criteria to find the record.
          :type values: dict
          :returns: an instance of the model.