code: def test_escape_return_type(escape):
      assert isinstance(escape("a"), Markup)
      assert isinstance(escape(Markup("a")), Markup)
  
      class Foo:
          def __html__(self):
              return "<strong>Foo</strong>"
  
      assert isinstance(escape(Foo()), Markup)
  
imports: import pytest
  from markupsafe import Markup
label_desc: Use image node_id 19 for calling a global function with example usage: test_escape_return_type(escape) and returns: str