code: def extract_valid_libs(filepath):
      """Evaluate syslibs_configure.bzl, return the VALID_LIBS set from that file."""
  
      # Stub only
      def repository_rule(**kwargs):  # pylint: disable=unused-variable
          del kwargs
  
      # Populates VALID_LIBS
      with open(filepath, "r") as f:
          f_globals = {"repository_rule": repository_rule}
          f_locals = {}
          exec(
              f.read(), f_globals, f_locals
          )  # pylint: disable=exec-used
  
      return set(f_locals["VALID_LIBS"])
  
imports: import glob
  import os
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: extract_valid_libs(filepath) and returns: set