code: def npy_ctypes_check(cls):
      # determine if a class comes from ctypes, in order to work around
      # a bug in the buffer protocol for those objects, bpo-10746
      try:
          # ctypes class are new-style, so have an __mro__. This probably fails
          # for ctypes classes with multiple inheritance.
          if IS_PYPY:
              # (..., _ctypes.basics._CData, Bufferable, object)
              ctype_base = cls.__mro__[-3]
          else:
              # # (..., _ctypes._CData, object)
              ctype_base = cls.__mro__[-2]
          # right now, they're part of the _ctypes module
          return "ctypes" in ctype_base.__module__
      except Exception:
          return False
  
imports: from __future__ import division, absolute_import, print_function
  import re
  import sys
  import platform
  from numpy.compat import unicode
  from numpy.core.overrides import set_module
  from .multiarray import dtype, array, ndarray
label_desc: Use image node_id 21 for calling a global function with example usage: npy_ctypes_check(cls) and returns: unknown, False