class_docstr: Test zipapp module functionality.
class_docstr_tok: ["Test","zipapp","module","functionality","."]
code: def test_modify_shebang(self):
      # Test that we can change the shebang of a file.
      source = self.tmpdir / "source"
      source.mkdir()
      (source / "__main__.py").touch()
      target = self.tmpdir / "source.pyz"
      zipapp.create_archive(
          str(source), str(target), interpreter="python"
      )
      new_target = self.tmpdir / "changed.pyz"
      zipapp.create_archive(
          str(target), str(new_target), interpreter="python2.7"
      )
      self.assertEqual(
          zipapp.get_interpreter(str(new_target)), "python2.7"
      )
  
imports: import io
  import pathlib
  import stat
  import sys
  import tempfile
  import unittest
  import zipapp
  import zipfile
  from test.support import requires_zlib
  from test.support import os_helper
  from unittest.mock import patch
label_desc: Use image node_id 20 for calling the ZipAppTest obj's underlying member method code with example usage: obj.test_modify_shebang() without return types