code: def is_method_overridden(method, base_class, derived_class):
      """Check if a method of base class is overridden in derived class.
  
      Args:
          method (str): the method name to check.
          base_class (type): the class of the base class.
          derived_class (type | Any): the class or instance of the derived class.
      """
      assert isinstance(
          base_class, type
      ), "base_class doesn't accept instance, Please pass class instead."
  
      if not isinstance(derived_class, type):
          derived_class = derived_class.__class__
  
      base_method = getattr(base_class, method)
      derived_method = getattr(derived_class, method)
      return derived_method != base_method
  
imports: import collections.abc
  import functools
  import itertools
  import subprocess
  import warnings
  from collections import abc
  from importlib import import_module
  from inspect import getfullargspec
  from itertools import repeat
label_desc: Use image node_id 18 for calling a global function with example usage: is_method_overridden(method, base_class, derived_class) and returns: unknown