code: def widget_eq(actual, expected):
      if actual == expected:
          return True
      if isinstance(actual, (str, tkinter.Widget)):
          if isinstance(expected, (str, tkinter.Widget)):
              return str(actual) == str(expected)
      return False
  
file_path: catboost/contrib/tools/python/src/Lib/lib-tk/test/test_ttk/support.py
imports: import functools
  import re
  import unittest
  import Tkinter
  import _tkinter
label_desc: Use image node_id 7 for calling a global function with example usage: widget_eq(actual, expected) and returns: False, True, unknown