code: def select(dataspec, testsuite, mode='list', cast=True):
      
      if isinstance(testsuite, itsdb.ItsdbProfile):
          testsuite = itsdb.TestSuite(testsuite.root)
      elif not isinstance(testsuite, itsdb.TestSuite):
          testsuite = itsdb.TestSuite(testsuite)
      return tsql.select(dataspec, testsuite, mode=mode, cast=cast)
docs: Select data from [incr tsdb()] profiles.
  
      Args:
          query (str): TSQL select query (e.g., `'i-id i-input mrs'` or
              `'* from item where readings > 0'`)
          testsuite (str, TestSuite): testsuite or path to testsuite
              containing data to select
          mode (str): see :func:`delphin.itsdb.select_rows` for a
              description of the *mode* parameter (default: `list`)
          cast (bool): if `True`, cast column values to their datatype
              according to the relations file (default: `True`)
      Returns:
          a generator that yields selected data