code: def test_inner_scalar_and_matrix_of_objects():
      # Ticket #4482
      # 2018-04-29: moved here from core.tests.test_multiarray
      arr = np.matrix([1, 2], dtype=object)
      desired = np.matrix([[3, 6]], dtype=object)
      assert_equal(np.inner(arr, 3), desired)
      assert_equal(np.inner(3, arr), desired)
  
imports: import pytest
  import textwrap
  import warnings
  import numpy
  from numpy.testing import assert_, assert_equal, assert_raises, assert_raises_regex, assert_array_equal, assert_almost_equal, assert_array_almost_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_inner_scalar_and_matrix_of_objects() without return types