code: def get_cflags_and_libs(root):
      cflags = ["-std=c++17", "-I" + os.path.join(root, "include")]
      libs = []
      if os.path.exists(
          os.path.join(root, "lib/pkgconfig/sentencepiece.pc")
      ):
          libs = [
              os.path.join(root, "lib/libsentencepiece.a"),
              os.path.join(root, "lib/libsentencepiece_train.a"),
          ]
      elif os.path.exists(
          os.path.join(root, "lib64/pkgconfig/sentencepiece.pc")
      ):
          libs = [
              os.path.join(root, "lib64/libsentencepiece.a"),
              os.path.join(root, "lib64/libsentencepiece_train.a"),
          ]
      return cflags, libs
  
file_path: sentencepiece/python/setup.py
imports: import codecs
  import os
  import string
  import subprocess
  import sys
  from setuptools import Extension, setup
  from setuptools.command.build_ext import build_ext
  from setuptools.command.build_py import build_py
label_desc: Use image node_id 4 for calling a global function with example usage: get_cflags_and_libs(root) and returns: cflags,  libs