sum and axis attribute sample in more than 3 dimensions using numpy

```python
now = int(time.time())
np.random.seed(now)
A = np.random.randint(0,10,(2,3))
np.random.shuffle(A)
print(A)
print("====axis=0====")
print(A.sum(axis=0))
print("====axis=-1====")
print(A.sum(axis=-1))
print("====axis=1===")
print(A.sum(axis=1))
print("====axis(0,1)====")
print(A.sum(axis=(0,1)))

def _sum(A):
 print("====_sum====")
 print(A)
 print("==axis=0==")
 print(A.sum(axis=0))
 print("==axis=-1==")
 print(A.sum(axis=-1))
 print("==axis=-2==")
 print(A.sum(axis=-2))
 print("==axis(-2,-1)==")
 print(A.sum(axis=(-2,-1)))
 print("==axis(-1,-2)==")
 print(A.sum(axis=(-1,-2)))
 print("====axis(0,-1)====")
 print(A.sum(axis=(0,-1)))
 print("===axis(0,-2)====")
 print(A.sum(axis=(0,-2)))
 if (A.ndim >= 4): 
  print("==axis=3==")
  print(A.sum(axis=3))
  print("===axis(0,3)====")
  print(A.sum(axis=(0,3)))
 print("====")

print("========")

A = np.random.randint(0,10,(3,4,3))
_sum(A)
A = np.random.randint(0,10,(3,4,3,4))
_sum(A)
```
* e.g.

```
[[7 1 5]
 [3 9 3]]
====axis=0====
[10 10  8]
====axis=-1====
[13 15]
====axis=1===
[13 15]
====axis(0,1)====
28
========
====_sum====
[[[4 8 3]
  [4 8 7]
  [9 8 5]
  [4 2 2]]

 [[7 9 7]
  [8 6 0]
  [4 5 3]
  [5 3 9]]

 [[9 4 5]
  [3 9 6]
  [5 8 2]
  [1 0 4]]]
==axis=0==
[[20 21 15]
 [15 23 13]
 [18 21 10]
 [10  5 15]]
==axis=-1==
[[15 19 22  8]
 [23 14 12 17]
 [18 18 15  5]]
==axis=-2==
[[21 26 17]
 [24 23 19]
 [18 21 17]]
==axis(-2,-1)==
[64 66 56]
==axis(-1,-2)==
[64 66 56]
====axis(0,-1)====
[56 51 49 30]
===axis(0,-2)====
[63 70 53]
====
====_sum====
[[[[5 8 9 4]
   [1 9 9 2]
   [5 1 1 7]]

  [[3 9 4 4]
   [6 5 5 3]
   [5 6 4 9]]

  [[0 1 4 3]
   [7 2 3 0]
   [4 5 7 9]]

  [[3 6 8 4]
   [4 8 2 4]
   [8 3 2 2]]]


 [[[4 0 3 4]
   [9 6 5 6]
   [6 2 1 9]]

  [[0 7 4 8]
   [7 1 8 1]
   [7 4 5 8]]

  [[9 9 1 1]
   [1 3 8 2]
   [3 6 0 0]]

  [[8 1 5 9]
   [3 1 9 1]
   [5 4 9 8]]]


 [[[7 3 6 0]
   [7 7 7 5]
   [4 3 2 4]]

  [[0 5 0 2]
   [1 2 3 9]
   [4 6 6 1]]

  [[2 3 4 8]
   [6 0 6 6]
   [1 8 0 2]]

  [[1 0 9 0]
   [2 5 9 4]
   [9 7 5 3]]]]
==axis=0==
[[[16 11 18  8]
  [17 22 21 13]
  [15  6  4 20]]

 [[ 3 21  8 14]
  [14  8 16 13]
  [16 16 15 18]]

 [[11 13  9 12]
  [14  5 17  8]
  [ 8 19  7 11]]

 [[12  7 22 13]
  [ 9 14 20  9]
  [22 14 16 13]]]
==axis=-1==
[[[26 21 14]
  [20 19 24]
  [ 8 12 25]
  [21 18 15]]

 [[11 26 18]
  [19 17 24]
  [20 14  9]
  [23 14 26]]

 [[16 26 13]
  [ 7 15 17]
  [17 18 11]
  [10 20 24]]]
==axis=-2==
[[[11 18 19 13]
  [14 20 13 16]
  [11  8 14 12]
  [15 17 12 10]]

 [[19  8  9 19]
  [14 12 17 17]
  [13 18  9  3]
  [16  6 23 18]]

 [[18 13 15  9]
  [ 5 13  9 12]
  [ 9 11 10 16]
  [12 12 23  7]]]
==axis(-2,-1)==
[[61 63 45 54]
 [55 60 43 63]
 [55 39 46 54]]
==axis(-1,-2)==
[[61 63 45 54]
 [55 60 43 63]
 [55 39 46 54]]
====axis(0,-1)====
[[53 73 45]
 [46 51 65]
 [45 44 45]
 [54 52 65]]
===axis(0,-2)====
[[48 39 43 41]
 [33 45 39 45]
 [33 37 33 31]
 [43 35 58 35]]
==axis=3==
[[[26 21 14]
  [20 19 24]
  [ 8 12 25]
  [21 18 15]]

 [[11 26 18]
  [19 17 24]
  [20 14  9]
  [23 14 26]]

 [[16 26 13]
  [ 7 15 17]
  [17 18 11]
  [10 20 24]]]
===axis(0,3)====
[[53 73 45]
 [46 51 65]
 [45 44 45]
 [54 52 65]]
====
```
# Refs.
* [numpy.random.seed](https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.random.seed.html)
* [numpy axis](https://deepage.net/features/numpy-axis.html)