code: def _to_data_frame(self, data, columns):
      if isinstance(
          data,
          (
              tuple,
              list,
          ),
      ):
          data = np.column_stack(data)
      return pd.DataFrame(data, columns=columns)
  
imports: from contextlib import ExitStack
  from contextlib import nullcontext
  from io import StringIO
  import os
  import tempfile
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import pandas
  import pandas.testing
  import pytest
  import sksurv.datasets
  from sksurv.io import writearff
  from sksurv.testing import FixtureParameterFactory
label_desc: Use image node_id 4 for calling the GetXyCases obj's underlying member method code with example usage: obj._to_data_frame(data, columns) and returns: pd