code: def root_is_purelib(name, wheeldir):
      """
      Return True if the extracted wheel in wheeldir should go into purelib.
      """
      name_folded = name.replace("-", "_")
      for item in os.listdir(wheeldir):
          match = dist_info_re.match(item)
          if match and match.group("name") == name_folded:
              with open(os.path.join(wheeldir, item, "WHEEL")) as wheel:
                  for line in wheel:
                      line = line.lower().rstrip()
                      if line == "root-is-purelib: true":
                          return True
      return False
  
imports: import logging
  import os
  import re
  import subprocess
  import sys
  from guild import util
label_desc: Use image node_id 16 for calling a global function with example usage: root_is_purelib(name, wheeldir) and returns: False, True