code: def libc(cls):
          
          try:
              output = subprocess.check_output(
                  ["ldd", "--version"], stderr=subprocess.STDOUT
              )
          except (OSError, subprocess.CalledProcessError):
              return "gnu"
          else:
              if b"musl" in output:
                  return "musl"
              else:
                  return "gnu"
docs: Alpine linux uses a non glibc version of the standard library, it uses
          the stripped down musl instead. The core agent can be built against it,
          but which one is running must be detected. Shelling out to `ldd`
          appears to be the most reliable way to do this.