code: def get_datasets_dataset_columns(dataset):
      """Common schemas for datasets found in dataset hub."""
      schema = set(dataset.column_names)
      if {"premise", "hypothesis", "label"} <= schema:
          input_columns = ("premise", "hypothesis")
          output_column = "label"
      elif {"question", "sentence", "label"} <= schema:
          input_columns = ("question", "sentence")
          output_column = "label"
      elif {"sentence1", "sentence2", "label"} <= schema:
          input_columns = ("sentence1", "sentence2")
          output_column = "label"
      elif {"question1", "question2", "label"} <= schema:
          input_columns = ("question1", "question2")
          output_column = "label"
      elif {"question", "sentence", "label"} <= schema:
          input_columns = ("question", "sentence")
          output_column = "label"
      elif {"context", "question", "title", "answers"} <= schema:
          # Common schema for SQUAD dataset
          input_columns = ("title", "context", "question")
          output_column = "answers"
      elif {"text", "label"} <= schema:
          input_columns = ("text",)
          output_column = "label"
      elif {"sentence", "label"} <= schema:
          input_columns = ("sentence",)
          output_column = "label"
      elif {"document", "summary"} <= schema:
          input_columns = ("document",)
          output_column = "summary"
      elif {"content", "summary"} <= schema:
          input_columns = ("content",)
          output_column = "summary"
      elif {"label", "review"} <= schema:
          input_columns = ("review",)
          output_column = "label"
      else:
          raise ValueError(
              f"Unsupported dataset schema {schema}. Try passing your own `dataset_columns` argument."
          )
  
      return input_columns, output_column
  
file_path: TextAttack/textattack/datasets/huggingface_dataset.py
imports: import collections
  import datasets
  import textattack
  from .dataset import Dataset
label_desc: Use image node_id 2 for calling a global function with example usage: get_datasets_dataset_columns(dataset) and returns: input_columns,  output_column