code: def titanic():
      import pandas as pd
  
      base = "https://raw.githubusercontent.com/autonomio/datasets/master/autonomio-datasets/"
      df = pd.read_csv(base + "titanic.csv")
  
      y = df.survived.values
  
      x = df[["age", "sibsp", "parch"]]
      cols = ["class", "embark_town", "who", "deck", "sex"]
  
      for col in cols:
          x = pd.merge(
              x,
              pd.get_dummies(df[col]),
              left_index=True,
              right_index=True,
          )
  
      x = x.values
  
      print("BE CAREFUL, this dataset has nan values.")
  
      return x, y
  
label_desc: Use image node_id 3 for calling a global function with example usage: titanic() and returns: x,  y