code: def test_safe_issubdtype():
      assert safe_issubdtype(int, np.integer)
      assert safe_issubdtype(np.dtype(float), np.floating)
      assert not safe_issubdtype(int, np.floating)
      assert not safe_issubdtype(np.dtype(float), np.integer)
  
      if have_pandas_categorical_dtype:
          bad_dtype = pandas.Series(["a", "b"], dtype="category")
          assert not safe_issubdtype(bad_dtype, np.integer)
  
imports: import sys
  import numpy
  import six
  from six.moves import cStringIO
  from .compat import optional_dep_ok
label_desc: Use image node_id 32 for calling a global function with example usage: test_safe_issubdtype() without return types