code: def test_file_handle_closed(self):
      # regression test of issue #1326
      path = self.make_workspace_file()
      assert (
          cellprofiler_core.utilities.core.workspace.is_workspace_file(
              path
          )
      )
      os.remove(path)
      self.workspace_files.remove(path)
      assert not os.path.isfile(path)
  
file_path: CellProfiler/tests/core/workspace/test_workspace.py
imports: import logging
  import os
  import tempfile
  import h5py
  import cellprofiler_core.measurement
  import cellprofiler_core.pipeline
  import cellprofiler_core.utilities.core.workspace
  import cellprofiler_core.workspace
  from cellprofiler_core.utilities.hdf5_dict import FILE_LIST_GROUP, TOP_LEVEL_GROUP_NAME
label_desc: Use image node_id 6 for calling the TestWorkspace obj's underlying member method code with example usage: obj.test_file_handle_closed() without return types