class_docstr: Read CSV files and transform to TF examples.
  
  Note that each input split will be transformed by this function separately.
docstr: Init method for _CsvToExample.
  
  Args:
    exec_properties: A dict of execution properties.
      - input_base: input dir that contains CSV data. CSV must have header
        line.
    split_pattern: Split.pattern in Input config, glob relative file pattern
      that maps to input files with root directory given by input_base.
docstr_tok: ["Init","method","for","_CsvToExample",".","Args",":","exec_properties",":","A","dict","of","execution","properties",".","-","input_base",":","input","dir","that","contains","CSV","data",".","CSV","must","have","header","line",".","split_pattern",":","Split.pattern","in","Input","config",",","glob","relative","file","pattern","that","maps","to","input","files","with","root","directory","given","by","input_base","."]
code: def __init__(
      self, exec_properties: Dict[str, Any], split_pattern: str
  ):
      """Init method for _CsvToExample.
  
      Args:
        exec_properties: A dict of execution properties.
          - input_base: input dir that contains CSV data. CSV must have header
            line.
        split_pattern: Split.pattern in Input config, glob relative file pattern
          that maps to input files with root directory given by input_base.
      """
      input_base_uri = exec_properties[
          standard_component_specs.INPUT_BASE_KEY
      ]
      self._csv_pattern = os.path.join(input_base_uri, split_pattern)
  
imports: import os
  from typing import Any, Dict, Iterable, List
  from absl import logging
  import apache_beam
  import tensorflow
  from tfx.components.example_gen.base_example_gen_executor import BaseExampleGenExecutor
  from tfx.dsl.io import fileio
  from tfx.types import standard_component_specs
  from tfx.utils import io_utils
  from tfx_bsl.coders import csv_decoder
label_desc: Use image node_id 1 to create a new _CsvToExample object from inherited base classes: beam with example: obj = _CsvToExample(exec_properties, split_pattern)