code: def I(self):
      if ivy.is_int_dtype(self._data):
          return ivy.inv(self._data.astype(ivy.float64))
      return ivy.inv(self._data)
  
file_path: ivy/ivy/functional/frontends/numpy/matrix/methods.py
imports: import ivy
  from ivy.functional.frontends.numpy import argmax, any, ndarray
label_desc: Use image node_id 6 for calling the matrix obj's underlying member method code with example usage: obj.I() and returns: ivy, ivy