code: def get_surv_data_frame(self, event_name="event", time_name="time"):
      event, time = self.event_and_time
      df = pd.DataFrame({event_name: event, time_name: time})
  
      expected = np.empty(
          dtype=[(str(event_name), bool), (str(time_name), float)],
          shape=100,
      )
      expected[str(event_name)] = event.astype(bool)
      expected[str(time_name)] = time
  
      return df, 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 1 for calling the SurvDataFrameCases obj's underlying member method code with example usage: obj.get_surv_data_frame(event_name, time_name) and returns: df,  expected