code: def test_temporary_filename_arg_with_differing_checkpoint_filename(
      self,
  ):
      epochs = 10
      tmp_filename = os.path.join(
          self.temp_dir_obj.name, "my_checkpoint.tmp.ckpt"
      )
      checkpoint_filename = os.path.join(
          self.temp_dir_obj.name, "my_checkpoint_{epoch}.ckpt"
      )
      train_gen = some_data_generator(ModelCheckpointTest.batch_size)
      valid_gen = some_data_generator(ModelCheckpointTest.batch_size)
      checkpointer = ModelCheckpoint(
          checkpoint_filename,
          monitor="val_loss",
          verbose=True,
          period=1,
          temporary_filename=tmp_filename,
      )
      self.model.fit_generator(
          train_gen,
          valid_gen,
          epochs=epochs,
          steps_per_epoch=5,
          callbacks=[checkpointer],
      )
      self.assertFalse(os.path.isfile(tmp_filename))
      for i in range(1, epochs + 1):
          self.assertTrue(
              os.path.isfile(checkpoint_filename.format(epoch=i))
          )
  
imports: import os
  import unittest
  from tempfile import TemporaryDirectory
  from unittest import TestCase
  import torch
  import torch.nn
  from poutyne import Model, ModelCheckpoint, torch_to_numpy
  from tests.framework.tools import some_data_generator
label_desc: Use image node_id 5 for calling the ModelCheckpointTest obj's underlying member method code with example usage: obj.test_temporary_filename_arg_with_differing_checkpoint_filename() without return types