code: def is_package_dir(dir_path):
      for filename in (
          "__init__.py",
          "__init__.pyc",
          "__init__.pyx",
          "__init__.pxd",
      ):
          path = os.path.join(dir_path, filename)
          if path_exists(path):
              return 1
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 12 for calling a global function with example usage: is_package_dir(dir_path) and returns: int