/// <summary>
 /// Create a text loader <see cref="TextLoader"/> by inferencing the dataset schema from a data model type.
 /// </summary>
 /// <param name="catalog">The <see cref="DataOperationsCatalog"/> catalog.</param>
 /// <param name="options">Defines the settings of the load operation. Defines the settings of the load operation. No need to specify a Columns field,
 /// as columns will be infered by this method.</param>
 /// <param name="dataSample">The optional location of a data sample. The sample can be used to infer information
 /// about the columns, such as slot names.</param>
 public static TextLoader CreateTextLoader <TInput>(this DataOperationsCatalog catalog,
                                                    TextLoader.Options options,
                                                    IMultiStreamSource dataSample = null)
 => TextLoader.CreateTextLoader <TInput>(CatalogUtils.GetEnvironment(catalog), options, dataSample);