code: def test_constant(
      var_shape,
      constant,
      init_with_v,
      method_with_v,
      class_name,
      method_name,
      ground_truth_backend,
      backend_fw,
      init_flags,
      method_flags,
      on_device,
  ):
      ret_ivy, ret_gt = helpers.test_method(
          backend_to_test=backend_fw,
          ground_truth_backend=ground_truth_backend,
          init_flags=init_flags,
          method_flags=method_flags,
          init_input_dtypes=[],
          init_all_as_kwargs_np={"constant": constant},
          method_input_dtypes=[],
          method_all_as_kwargs_np={
              "var_shape": var_shape,
              "device": "cpu",
          },
          class_name=class_name,
          method_name=method_name,
          init_with_v=init_with_v,
          method_with_v=method_with_v,
          test_values=False,
          on_device=on_device,
      )
  
      assert ret_ivy.shape == ret_gt.shape
      assert ret_ivy.dtype == ret_gt.dtype
      assert ivy.all(ivy.equal(ret_ivy, ivy.array(constant)))
  
file_path: ivy/ivy_tests/test_ivy/test_stateful/test_initializers.py
imports: from hypothesis import strategies
  import ivy
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_method
label_desc: Use image node_id 1 for calling a global function with example usage: test_constant(var_shape, constant, init_with_v, method_with_v, class_name, method_name, ground_truth_backend, backend_fw, init_flags, method_flags, on_device) without return types