code: def test_is_overridden():
      # edge cases
      assert not is_overridden("whatever", None)
      with pytest.raises(ValueError, match="Expected a parent"):
          is_overridden("whatever", object())
      flow = Flow()
      assert not is_overridden("whatever", flow)
      assert not is_overridden("whatever", flow, parent=Flow)
      # normal usage
      assert is_overridden("run", flow)
      work = Work()
      assert is_overridden("run", work)
  
imports: from functools import partial
  from unittest import mock
  import pytest
  from lightning.app import LightningApp, LightningFlow, LightningWork
  from lightning.app.core.flow import _RootFlow
  from lightning.app.frontend import StaticWebFrontend
  from lightning.app.utilities.app_helpers import AppStatePlugin, BaseStatePlugin, InMemoryStateStore, StateStore, _is_headless, _MagicMockJsonSerializable, is_overridden, is_static_method
  from lightning.app.utilities.exceptions import LightningAppStateException
label_desc: Use image node_id 1 for calling a global function with example usage: test_is_overridden() without return types