# Copyright 2019 Google LLC
#
# 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.
"""Init module for ML Metadata."""
from ml_metadata import proto

# Import metadata_store API.
from ml_metadata.metadata_store import downgrade_schema
from ml_metadata.metadata_store import ListOptions
from ml_metadata.metadata_store import MetadataStore
from ml_metadata.metadata_store import OrderByField

# Import version string.
from ml_metadata.version import __version__

@@ -603,16 +603,63 @@
 ata.%22%22%22%0A
+%0A%0A# pylint: disable=g-import-not-at-top%0Atry:%0A  
 from ml_
@@ -681,16 +681,18 @@
  proto%0A%0A
+  
 # Import
@@ -712,16 +712,18 @@
 re API.%0A
+  
 from ml_
@@ -770,16 +770,18 @@
 _schema%0A
+  
 from ml_
@@ -823,16 +823,18 @@
 Options%0A
+  
 from ml_
@@ -878,16 +878,18 @@
 taStore%0A
+  
 from ml_
@@ -933,16 +933,18 @@
 yField%0A%0A
+  
 # Import
@@ -960,16 +960,18 @@
 string.%0A
+  
 from ml_
@@ -1006,8 +1006,140 @@
 rsion__%0A
+%0Aexcept ImportError as err:%0A  import sys%0A  sys.stderr.write('Error importing: %7B%7D'.format(err))%0A# pylint: enable=g-import-not-at-top%0A

Add import exception module init.