class_docstr: Unit test for solver_utils. 
class_docstr_tok: ["Unit","test","for","solver_utils","."]
docstr: get the most recently modified model file matching pattern unittest
docstr_tok: ["get","the","most","recently","modified","model","file","matching","pattern","unittest"]
code: def test_get_most_recently_modified_file_matching_pattern(self):
      """get the most recently modified model file matching pattern unittest"""
      # There is no model file in model_path
      most_rencently_modified_file = (
          solver_utils.get_most_recently_modified_file_matching_pattern(
              self.model_path, self.file_name_pattern
          )
      )
      self.assertIsNone(most_rencently_modified_file)
  
      # pylint: disable=invalid-name
      with open(
          Path(self.model_path).joinpath("model.01-1.00.h5"),
          "w",
          encoding="utf-8",
      ) as f:
          f.write("test ckpt file")
      most_rencently_modified_file = (
          solver_utils.get_most_recently_modified_file_matching_pattern(
              self.model_path, self.file_name_pattern
          )
      )
      self.assertIsNone(most_rencently_modified_file)
  
      file_name_list = [
          "model.01-1.00.ckpt",
          "model.02-1.00.ckpt",
          "model.03-1.00.ckpt",
      ]
      for file_name in file_name_list:
          file_path = Path(self.model_path).joinpath(file_name)
          with open(
              file_path, "w", encoding="utf-8"
          ) as f:  # pylint: disable=invalid-name
              f.write("test ckpt file")
              time.sleep(1)
      most_rencently_modified_file = (
          solver_utils.get_most_recently_modified_file_matching_pattern(
              self.model_path, self.file_name_pattern
          )
      )
      self.assertEqual(
          most_rencently_modified_file.name, file_name_list[-1]
      )
  
file_path: delta/delta/utils/solver/utils/solver_utils_test.py
imports: import time
  from pathlib import Path
  import delta.compat
  from absl import logging
  from delta import utils
  from delta.utils.solver.utils import solver_utils
label_desc: Use image node_id 3 for calling the SolverUtilsTest obj's underlying member method code with example usage: obj.test_get_most_recently_modified_file_matching_pattern() without return types