fromnumbaimportjitfromnumpyimportarange# jit decorator tells Numba to compile this function.# The argument types will be inferred by Numba when function is called.@jitdefsum2d(arr):M,N=arr.shaperesult=0.0foriinrange(M):forjinrange(N):result+=arr[i,j]returnresulta=arange(9).reshape(3,3)print(sum2d(a))