def METHOD_NAME(self):
    with self.assertRaisesWith(
        exc_type=AssertionError,
        exc_msg=(
            "If specifying the 'baseline_mean' manually, please ensure it matches the 'dtype'! "
            "Received 'int', should be a float."
        ),
    ):
        generate_mock_ttl_signal(baseline_mean=1, dtype="float32")