code: def guess(cls, sample):
          
          if isinstance(sample, TypeEngine):
              return sample
          if isinstance(sample, bool):
              return cls.boolean
          elif isinstance(sample, int):
              return cls.integer
          elif isinstance(sample, float):
              return cls.float
          elif isinstance(sample, datetime):
              return cls.datetime
          elif isinstance(sample, date):
              return cls.date
          return cls.text
docs: Given a single sample, guess the column type for the field.
  
          If the sample is an instance of an SQLAlchemy type, the type will be
          used instead.