code: def test_path_type_input_invalid(self):
      path_test = self.build_operands("ab,bc,cd,de->ae")
      exp_path = ["einsum_path", (2, 3), (0, 1)]
      assert_raises(
          RuntimeError, np.einsum, *path_test, optimize=exp_path
      )
      assert_raises(
          RuntimeError, np.einsum_path, *path_test, optimize=exp_path
      )
  
      path_test = self.build_operands("a,a,a->a")
      exp_path = ["einsum_path", (1,), (0, 1)]
      assert_raises(
          RuntimeError, np.einsum, *path_test, optimize=exp_path
      )
      assert_raises(
          RuntimeError, np.einsum_path, *path_test, optimize=exp_path
      )
  
imports: import itertools
  import sys
  import platform
  import pytest
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_raises, suppress_warnings, assert_raises_regex, assert_allclose
label_desc: Use image node_id 8 for calling the TestEinsumPath obj's underlying member method code with example usage: obj.test_path_type_input_invalid() without return types