class_docstr: Loads the contents of a Feature Group's offline store or contents at an S3 URI.
class_docstr_tok: ["Loads","the","contents","of","a","Feature","Group","'s","offline","store","or","contents","at","an","S3","URI","."]
docstr: Load the contents from an S3 based data source.
  
  Args:
      s3_data_source (Union[CSVDataSource, ParquetDataSource]): a data source that is based
          in S3.
  
  Returns:
      T: The contents stored at the data source as an instance of type T.
docstr_tok: ["Load","the","contents","from","an","S3","based","data","source",".","Args",":","s3_data_source","(","Union","[","CSVDataSource",",","ParquetDataSource","]",")",":","a","data","source","that","is","based","in","S3",".","Returns",":","T",":","The","contents","stored","at","the","data","source","as","an","instance","of","type","T","."]
code: def load_from_s3(
      self, s3_data_source: Union[CSVDataSource, ParquetDataSource]
  ) -> T:
      """Load the contents from an S3 based data source.
  
      Args:
          s3_data_source (Union[CSVDataSource, ParquetDataSource]): a data source that is based
              in S3.
  
      Returns:
          T: The contents stored at the data source as an instance of type T.
      """
  
imports: from __future__ import absolute_import
  import logging
  import re
  from abc import ABC, abstractmethod
  from typing import Generic, Optional, TypeVar, Union
  import attr
  from pyspark.sql import DataFrame
  from sagemaker import Session
  from sagemaker.feature_store.feature_processor._constants import FEATURE_GROUP_ARN_REGEX_PATTERN
  from sagemaker.feature_store.feature_processor._data_source import CSVDataSource, FeatureGroupDataSource, ParquetDataSource, IcebergTableDataSource
  from sagemaker.feature_store.feature_processor._spark_factory import SparkSessionFactory
  from sagemaker.feature_store.feature_processor._input_offset_parser import InputOffsetParser
  from sagemaker.feature_store.feature_processor._env import EnvironmentHelper
label_desc: Use image node_id 2 for calling the InputLoader obj's underlying member method code with example usage: obj.load_from_s3(s3_data_source) without return types