code: def find(cls, dtype):
          
          try:
              return cls._member_map_[dtype]
          except KeyError:
              try:
                  dtype = numpy.dtype(dtype).type
              except TypeError:
                  for ndstype in cls._member_map_.values():
                      if ndstype.value is dtype:
                          return ndstype
              else:
                  for ndstype in cls._member_map_.values():
                      if ndstype.value and ndstype.numpy_dtype is dtype:
                          return ndstype
              raise ValueError('%s is not a valid %s' % (dtype, cls.__name__))
docs: Returns the NDS2 type corresponding to the given python type