old_contents: # Copyright 2019 Google LLC. All Rights Reserved.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  """Subpackage for TFX components."""
  
  # For component user to direct use tfx.components.[...] as an alias.
  from tfx.components.evaluator.component import Evaluator
  from tfx.components.example_gen.big_query_example_gen.component import BigQueryExampleGen
  from tfx.components.example_gen.component import FileBasedExampleGen
  from tfx.components.example_gen.csv_example_gen.component import CsvExampleGen
  from tfx.components.example_gen.import_example_gen.component import ImportExampleGen
  from tfx.components.example_validator.component import ExampleValidator
  from tfx.components.model_validator.component import ModelValidator
  from tfx.components.pusher.component import Pusher
  from tfx.components.schema_gen.component import SchemaGen
  from tfx.components.statistics_gen.component import StatisticsGen
  from tfx.components.trainer.component import Trainer
  from tfx.components.transform.component import Transform
  
new_contents: # Copyright 2019 Google LLC. All Rights Reserved.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  """Subpackage for TFX components."""
  
  import tensorflow as tf
  
  # For component user to direct use tfx.components.[...] as an alias.
  from tfx.components.evaluator.component import Evaluator
  from tfx.components.example_gen.big_query_example_gen.component import BigQueryExampleGen
  from tfx.components.example_gen.component import FileBasedExampleGen
  from tfx.components.example_gen.csv_example_gen.component import CsvExampleGen
  from tfx.components.example_gen.import_example_gen.component import ImportExampleGen
  from tfx.components.example_validator.component import ExampleValidator
  from tfx.components.model_validator.component import ModelValidator
  from tfx.components.pusher.component import Pusher
  from tfx.components.schema_gen.component import SchemaGen
  from tfx.components.statistics_gen.component import StatisticsGen
  from tfx.components.trainer.component import Trainer
  from tfx.components.transform.component import Transform
  
  # Prevents double logging due to both tensorflow and logging module adds it's
  # own handler
  tf.get_logger().propagate = False
  
subject: Fix tensorflow double logging for beam pipeline https://stackoverflow.com/questions/33662648/tensorflow-causes-logging-messages-to-double