def METHOD_NAME(self, f, dtype):
    # Find the typing of the dtype argument to cuda.shared.array
    annotation = next(iter(f.overloads.values()))._type_annotation
    l_dtype = annotation.typemap['s'].dtype
    # Ensure that the typing is correct
    self.assertEqual(l_dtype, dtype)