class_docstr: Custom ZipFile class handling file permissions. 
class_docstr_tok: ["Custom","ZipFile","class","handling","file","permissions","."]
code: def _extract_member(self, member, targetpath, pwd):
      if not isinstance(member, zipfile.ZipInfo):
          member = self.getinfo(member)
  
      targetpath = super()._extract_member(member, targetpath, pwd)
  
      attr = member.external_attr >> 16
      if attr != 0:
          os.chmod(targetpath, attr)
      return targetpath
  
imports: from __future__ import print_function
  import os
  import shutil
  import subprocess
  import subprocess
  import tarfile
  import tempfile
  import zipfile
  from time import sleep
label_desc: Use image node_id 1 for calling the ZipFile obj's underlying member method code with example usage: obj._extract_member(member, targetpath, pwd) and returns: targetpath