code: def filterflags(flags_str):
      badflgs = {
          "-fdebug-prefix-map",
          "-DARCADIA_ROOT",
          "-DARCADIA_BUILD_ROOT",
          "/DARCADIA_ROOT",
          "/DARCADIA_BUILD_ROOT",
      }
  
      def flags_iter():
          for flag in flags_str.split():
              if not flag:
                  continue
              if flag.split("=", 1)[0] in badflgs:
                  continue
              yield flag
  
      return " ".join(flags_iter())
  
file_path: catboost/build/scripts/build_info_gen.py
imports: import subprocess
  import os
  import sys
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: filterflags(flags_str) and returns: str