code: def test_from_arrays(args, kwargs, expected, expected_error):
      with expected_error:
          y = Surv.from_arrays(*args, **kwargs)
  
      if expected is not None:
          assert_array_equal(y, expected)
  
imports: from collections import OrderedDict
  from contextlib import nullcontext
  import numpy
  from numpy.testing import assert_array_equal
  import pandas
  import pandas.testing
  import pytest
  from sksurv.testing import FixtureParameterFactory
  from sksurv.util import Surv, _PropertyAvailableIfDescriptor, property_available_if, safe_concat
label_desc: Use image node_id 3 for calling a global function with example usage: test_from_arrays(args, kwargs, expected, expected_error) without return types