code: def _is_parent(dir_a, dir_b):
      """
      Return True if a is a parent of b.
      """
      return os.path.normcase(dir_a).startswith(os.path.normcase(dir_b))
  
imports: import os
  import re
  import sys
  import sysconfig
  import pathlib
  from .errors import DistutilsPlatformError
  from .None import py39compat
  from ._functools import pass_none
label_desc: Use image node_id 2 for calling a global function with example usage: _is_parent(dir_a, dir_b) and returns: os