code: def test_array_encoding_disabled_by_dtype() -> None:
      assert len(bus.BINARY_ARRAY_TYPES) > 0
  
      dt_ok = bus.BINARY_ARRAY_TYPES
      dt_bad = {
          np.dtype(x) for x in set(np.sctypeDict.values()) - {np.void}
      } - dt_ok
  
      for dt in dt_ok:
          a = np.empty(shape=10, dtype=dt)
          assert not bus.array_encoding_disabled(a)
  
      for dt in dt_bad:
          a = np.empty(shape=10, dtype=dt)
          assert bus.array_encoding_disabled(a)
  
imports: from __future__ import annotations
  import pytest
  import datetime
  from math import inf, nan
  import numpy
  import pandas
  import pytz
  from tests.support.util.env import envset
  import bokeh.util.serialization
label_desc: Use image node_id 20 for calling a global function with example usage: test_array_encoding_disabled_by_dtype() without return types