code: def test_inv_link_mlogit():
      scores = np.array(
          [
              [
                  [np.inf, np.nan, -np.inf],
                  [-np.inf, -np.inf, -np.inf],
                  [-np.inf, 0.0, 0.0],
                  [999.0, -999.0, 0.0],
                  [-0.9162907, 0.0, -1.6094379],
                  [np.inf, -np.inf, 0.0],
                  [np.inf, np.inf, 0.0],
                  [np.inf, np.inf, np.inf],
                  [np.inf, 0.0, 0.0],
              ]
          ]
      )
      expected = np.array(
          [
              [
                  [np.nan, np.nan, np.nan],
                  [1 / 3, 1 / 3, 1 / 3],
                  [0.0, 0.5, 0.5],
                  [1.0, 0.0, 0.0],
                  [0.25, 0.625, 0.125],
                  [1.0, 0.0, 0.0],
                  [0.5, 0.5, 0.0],
                  [1 / 3, 1 / 3, 1 / 3],
                  [1.0, 0.0, 0.0],
              ]
          ]
      )
      result = inv_link(scores, "mlogit")
      np.testing.assert_almost_equal(result, expected)
  
imports: import numpy
  import pytest
  from interpret.utils import link_func, inv_link
label_desc: Use image node_id 32 for calling a global function with example usage: test_inv_link_mlogit() without return types