code: def titanic_survive():
      X_train = d_train.drop(["Survival", "Name"], axis=1)
      X_train.index = d_train.Name
      X_train.index.name = "Passenger"
      y_train = d_train["Survival"]
      X_test = d_test.drop(["Survival", "Name"], axis=1)
      X_test.index = d_test.Name
      X_test.index.name = "Passenger"
      y_test = d_test["Survival"]
      return X_train, y_train, X_test, y_test
  
imports: import numpy
  import pandas
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: titanic_survive() and returns: X_train,  y_train,  X_test,  y_test