In the topic, we mentioned that SciPy and NumPy have some functions in common. The goal of this problem is to illustrate that in some cases, those libraries are interchangeable.
Given a matrix , use SciPy or NumPy to find the inverse of the matrix , then calculate and print the trace of the inverted matrix.
Tip: You can use numpy.trace or scipy.trace to get the trace of a matrix. To find the inverse, use inv function from the linalg subpackage.