code: def assert_interval_advanced(self, connection):
      diff = (
          connection.next_health_check
          - asyncio.get_running_loop().time()
      )
      assert self.interval >= diff > (self.interval - 1)
  
imports: import asyncio
  import re
  import pytest
  import pytest_asyncio
  import redis.asyncio
  from redis.asyncio.connection import Connection, to_bool
  from tests.conftest import skip_if_redis_enterprise, skip_if_server_version_lt
  from .compat import aclosing, mock
  from .conftest import asynccontextmanager
  from .test_pubsub import wait_for_message
label_desc: Use image node_id 1 for calling the TestHealthCheck obj's underlying member method code with example usage: obj.assert_interval_advanced(connection) without return types