docstr: If the underlying zipfile is changed, the Path object should
  reflect that change.
docstr_tok: ["If","the","underlying","zipfile","is","changed",",","the","Path","object","should","reflect","that","change","."]
code: def test_mutability(self, alpharep):
      """
      If the underlying zipfile is changed, the Path object should
      reflect that change.
      """
      root = zipfile.Path(alpharep)
      a, b, g, j = root.iterdir()
      alpharep.writestr("foo.txt", "foo")
      alpharep.writestr("bar/baz.txt", "baz")
      assert any(child.name == "foo.txt" for child in root.iterdir())
      assert (root / "foo.txt").read_text(encoding="utf-8") == "foo"
      (baz,) = (root / "bar").iterdir()
      assert baz.read_text(encoding="utf-8") == "baz"
  
imports: import io
  import itertools
  import contextlib
  import pathlib
  import pickle
  import sys
  import unittest
  import zipfile
  from ._functools import compose
  from ._itertools import Counter
  from ._test_params import parameterize, Invoked
  from test.support.os_helper import temp_dir
label_desc: Use image node_id 24 for calling the TestPath obj's underlying member method code with example usage: obj.test_mutability(alpharep) without return types