code: def test_filter_html():
      class A:
          html = "YES"
  
          def _repr_html_(self):
              return "NO"
  
          def __str__(self):
              return "NO NO NO"
  
      class B:
          def _repr_html_(self):
              return "YES"
  
          def __str__(self):
              return "NO"
  
      class C:
          def __str__(self):
              return "YES"
  
      assert filter_html(A()) == "YES"
      assert filter_html(B()) == "YES"
      assert filter_html(C()) == "YES"
      assert filter_html(None) == ""
      assert filter_html(1) == "1"
      assert filter_html(True) == "True"
      assert filter_html("abc") == "abc"
  
file_path: tslumen/tests/unit/test_jinja_utils.py
imports: from datetime import datetime
  import pytest
  import numpy
  import pandas
  import jinja2
  from tslumen.jinja_utils import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_filter_html() and returns: str, str, str, str, str