code: def check_filename(self, path, exp_fname, exp_bname, exp_format):
      fname, bname, fmt = parse_filename(path)
      self.assertEqual(fname, exp_fname)
      self.assertEqual(bname, exp_bname)
      self.assertEqual(fmt, exp_format)
  
file_path: nbformat/tests/v3/test_misc.py
imports: from __future__ import annotations
  import os
  from unittest import TestCase
  from nbformat.v3 import parse_filename
label_desc: Use image node_id 1 for calling the MiscTests obj's underlying member method code with example usage: obj.check_filename(path, exp_fname, exp_bname, exp_format) without return types