code: def expect_true(condition, msg, extras=None):
      
      try:
          asserts.assert_true(condition, msg, extras)
      except signals.TestSignal as e:
          logging.exception('Expected a `True` value, got `False`.')
          recorder.add_error(e)
docs: Expects an expression evaluates to True.
  
      If the expectation is not met, the test is marked as fail after its
      execution finishes.
  
      Args:
          expr: The expression that is evaluated.
          msg: A string explaining the details in case of failure.
          extras: An optional field for extra information to be included in test
              result.