code: def check_global_options(expected_options, white_list=[]):
      """
      returns error message of "" if check Ok
      """
      no_value = object()
      for name, orig_value in expected_options.items():
          if name not in white_list:
              if getattr(Options, name, no_value) != orig_value:
                  return "error in option " + name
      return ""
  
file_path: catboost/contrib/tools/cython/Cython/Compiler/Tests/TestCmdLine.py
imports: import sys
  import re
  from unittest import TestCase
  from ..None import Options
  from ..CmdLine import parse_command_line
label_desc: Use image node_id 1 for calling a global function with example usage: check_global_options(expected_options, white_list) and returns: str, unknown