code: def test_no_depre_without_epoch_end(tmpdir):
      """Tests that only training_step can be used."""
      model = TestModel()
  
      trainer = Trainer(
          default_root_dir=tmpdir,
          limit_train_batches=2,
          limit_val_batches=2,
          max_epochs=2,
          log_every_n_steps=1,
          enable_model_summary=False,
      )
  
      with warnings.catch_warnings(record=True) as w:
          trainer.fit(model)
  
          for msg in w:
              assert "should not return anything " not in str(msg)
  
imports: import warnings
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
label_desc: Use image node_id 1 for calling a global function with example usage: test_no_depre_without_epoch_end(tmpdir) without return types