code: def test_beta(
      *,
      dtype_and_alpha_beta,
      seed,
      backend_fw,
      fn_name,
      on_device,
      test_flags,
  ):
      dtype, alpha_beta = dtype_and_alpha_beta
      if "float16" in dtype:
          return
      ret, ret_gt = helpers.test_function(
          input_dtypes=dtype,
          test_flags=test_flags,
          test_values=False,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          alpha=alpha_beta[0],
          beta=alpha_beta[1],
          shape=None,
          dtype=dtype[0],
          seed=seed,
      )
      ret = helpers.flatten_and_to_np(ret=ret, backend=backend_fw)
      ret_gt = helpers.flatten_and_to_np(
          ret=ret_gt, backend=test_flags.ground_truth_backend
      )
      with BackendHandler.update_backend(backend_fw) as ivy_backend:
          for u, v in zip(ret, ret_gt):
              assert ivy_backend.all(u >= 0)
              assert ivy_backend.all(u <= 1)
              assert ivy_backend.all(v >= 0)
              assert ivy_backend.all(v <= 1)
  
file_path: ivy/ivy_tests/test_ivy/test_functional/test_experimental/test_core/test_random.py
imports: from hypothesis import strategies, assume
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
label_desc: Use image node_id 2 for calling a global function with example usage: test_beta() without return types