class_docstr: A component providing a tfx_bsl.coders.TfGraphRecordDecoder as a DataView.
  
  User needs to define a function that creates such a TfGraphRecordDecoder. This
  component, when running, calls that function and writes the result decoder
  (in the form of a TF SavedModel) as its output artifact.
  
  Example:
  ```
    # Import a decoder that can be created by a function 'create_decoder()' in
    # module_file:
    data_view_provider = TfGraphDataViewProvider(
        module_file=module_file,
        create_decoder_func='create_decoder')
  ```
class_docstr_tok: ["A","component","providing","a","tfx_bsl.coders.TfGraphRecordDecoder","as","a","DataView",".","User","needs","to","define","a","function","that","creates","such","a","TfGraphRecordDecoder",".","This","component",",","when","running",",","calls","that","function","and","writes","the","result","decoder","(","in","the","form","of","a","TF","SavedModel",")","as","its","output","artifact",".","Example",":","``","`","#","Import","a","decoder","that","can","be","created","by","a","function","'create_decoder","(",")","'","in","#","module_file",":","data_view_provider","=","TfGraphDataViewProvider","(","module_file=module_file",",","create_decoder_func='create_decoder","'",")","``","`"]
docstr: Construct a StatisticsGen component.
  
  Args:
    create_decoder_func: If `module_file` is not None, this should be the name
      of the function in `module_file` that this component need to use to
      create the TfGraphRecordDecoder. Otherwise it should be the path
      (dot-delimited, e.g. "some_package.some_module.some_func") to such
      a function. The function must have the following signature:
  
      def create_decoder_func() -> tfx_bsl.coder.TfGraphRecordDecoder:
        ...
    module_file: The file path to a python module file, from which the
      function named after `create_decoder_func` will be loaded. If not
      provided, `create_decoder_func` is expected to be a path to a function.
    data_view: Output 'DataView' channel, in which a the decoder will be
      saved.
docstr_tok: ["Construct","a","StatisticsGen","component",".","Args",":","create_decoder_func",":","If","`","module_file","`","is","not","None",",","this","should","be","the","name","of","the","function","in","`","module_file","`","that","this","component","need","to","use","to","create","the","TfGraphRecordDecoder",".","Otherwise","it","should","be","the","path","(","dot-delimited",",","e.g",".","``","some_package.some_module.some_func","''",")","to","such","a","function",".","The","function","must","have","the","following","signature",":","def","create_decoder_func","(",")","-",">","tfx_bsl.coder.TfGraphRecordDecoder",":","...","module_file",":","The","file","path","to","a","python","module","file",",","from","which","the","function","named","after","`","create_decoder_func","`","will","be","loaded",".","If","not","provided",",","`","create_decoder_func","`","is","expected","to","be","a","path","to","a","function",".","data_view",":","Output","'DataView","'","channel",",","in","which","a","the","decoder","will","be","saved","."]
code: def __init__(
      self,
      create_decoder_func: str,
      module_file: Optional[str] = None,
      data_view: Optional[types.Channel] = None,
  ):
      """Construct a StatisticsGen component.
  
      Args:
        create_decoder_func: If `module_file` is not None, this should be the name
          of the function in `module_file` that this component need to use to
          create the TfGraphRecordDecoder. Otherwise it should be the path
          (dot-delimited, e.g. "some_package.some_module.some_func") to such
          a function. The function must have the following signature:
  
          def create_decoder_func() -> tfx_bsl.coder.TfGraphRecordDecoder:
            ...
        module_file: The file path to a python module file, from which the
          function named after `create_decoder_func` will be loaded. If not
          provided, `create_decoder_func` is expected to be a path to a function.
        data_view: Output 'DataView' channel, in which a the decoder will be
          saved.
      """
      if data_view is None:
          data_view = types.Channel(type=standard_artifacts.DataView)
      spec = _TfGraphDataViewProviderSpec(
          module_file=module_file,
          create_decoder_func=create_decoder_func,
          data_view=data_view,
      )
      super().__init__(spec=spec)
  
file_path: tfx/tfx/components/experimental/data_view/provider_component.py
imports: from typing import Optional
  from tfx import types
  from tfx.components.experimental.data_view import provider_executor
  from tfx.dsl.components.base import base_component
  from tfx.dsl.components.base import executor_spec
  from tfx.types import standard_artifacts
  from tfx.types.component_spec import ChannelParameter
  from tfx.types.component_spec import ComponentSpec
  from tfx.types.component_spec import ExecutionParameter
label_desc: Use image node_id 1 to create a new TfGraphDataViewProvider object from inherited base classes: base_component with example: obj = TfGraphDataViewProvider(create_decoder_func, module_file, data_view)