code: def assert_same_type(
      ret_from_target, ret_from_gt, backend_to_test, gt_backend
  ):
      """Assert that the return types from the target and ground truth frameworks
      are the same.
  
      checks with a string comparison because with_backend returns
      different objects. Doesn't check recursively.
      """
  
      def _assert_same_type(x, y):
          assert_msg = (
              f"ground truth backend ({gt_backend}) returned"
              f" {type(y)} but target backend ({backend_to_test}) returned"
              f" {type(x)}"
          )
          assert str(type(x)) == str(type(y)), assert_msg
  
      ivy.nested_multi_map(
          lambda x, _: _assert_same_type(x[0], x[1]),
          [ret_from_target, ret_from_gt],
      )
  
file_path: ivy/ivy_tests/test_ivy/helpers/assertions.py
imports: import ivy
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: assert_same_type(ret_from_target, ret_from_gt, backend_to_test, gt_backend) without return types