code: def from_titanic(
      val_split: float = 0.1,
      batch_size: int = 4,
      **data_module_kwargs,
  ) -> TabularClassificationData:
      """Downloads and loads the Titanic data set."""
      download_data(
          "https://pl-flash-data.s3.amazonaws.com/titanic.zip", "./data"
      )
      return TabularClassificationData.from_csv(
          [
              "Sex",
              "Age",
              "SibSp",
              "Parch",
              "Ticket",
              "Cabin",
              "Embarked",
          ],
          "Fare",
          target_fields="Survived",
          train_file="data/titanic/titanic.csv",
          val_split=val_split,
          batch_size=batch_size,
          **data_module_kwargs,
      )
  
imports: from flash.core.data.utils import download_data
  from flash.core.utilities.flash_cli import FlashCLI
  from flash.tabular.classification.data import TabularClassificationData
  from flash.tabular.classification.model import TabularClassifier
label_desc: Use image node_id 1 for calling a global function with example usage: from_titanic(val_split, batch_size) and returns: TabularClassificationData