code: def lib_dir(
      name,
      wheeldir,
      user=False,
      home=None,
      root=None,
      isolated=False,
      prefix=None,
  ):
      scheme = _distutils_scheme(
          "",
          user=user,
          home=home,
          root=root,
          isolated=isolated,
          prefix=prefix,
      )
      if root_is_purelib(name, wheeldir):
          return scheme["purelib"]
      return scheme["platlib"]
  
imports: import logging
  import os
  import re
  import subprocess
  import sys
  from guild import util
label_desc: Use image node_id 17 for calling a global function with example usage: lib_dir(name, wheeldir, user, home, root, isolated, prefix) and returns: scheme, scheme