code: def get_types_special(X: Series) -> List[str]:
      types_special = []
      if isinstance(X.dtype, pd.SparseDtype):
          types_special.append("sparse")
      if check_if_datetime_as_object_feature(X):
          types_special.append("datetime_as_object")
      elif check_if_nlp_feature(X):
          types_special.append("text")
      return types_special
  
file_path: autogluon/common/src/autogluon/common/features/infer_types.py
imports: import logging
  from collections import defaultdict
  from typing import List
  import numpy
  import pandas
  from pandas import DataFrame, Series
label_desc: Use image node_id 5 for calling a global function with example usage: get_types_special(X) and returns: types_special