code: def array_supported_kinds(kinds="biufMSUO"):
      def validator(trait, value):
          if value.dtype.kind not in kinds:
              raise TraitError(
                  "Array type not supported for trait %s of class %s: expected a \
                  array of kind in list %r and got an array of type %s (kind %s)"
                  % (
                      trait.name,
                      trait.this_class,
                      list(kinds),
                      value.dtype,
                      value.dtype.kind,
                  )
              )
          return value
  
      return validator
  
imports: from traitlets import TraitError, TraitType
  import numpy
  import pandas
  import warnings
  import datetime
  import six
label_desc: Use image node_id 8 for calling a global function with example usage: array_supported_kinds(kinds) and returns: validator, value