prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  TypeErro occurs in gcp/automl/create_dataset_for_tables component
  ### What steps did you take:
  [A clear and concise description of what the bug is.]
  
  [gcp/automl/create_dataset_for_tables component](https://github.com/kubeflow/pipelines/tree/master/components/gcp/automl/create_dataset_for_tables)'s `create_time` output is declared as a string:
  
  https://github.com/kubeflow/pipelines/blob/ecb14f40bb819c0678589b6458892ece5369fa71/components/gcp/automl/create_dataset_for_tables/component.yaml#L15
  
  however, `google.protobuf.timestamp_pb2.Timestamp` is returned in actual fact:
  
  https://github.com/kubeflow/pipelines/blob/ecb14f40bb819c0678589b6458892ece5369fa71/components/gcp/automl/create_dataset_for_tables/component.py#L54
  
  FYI: The `dataset` object is an instance of `google.cloud.automl_v1beta1.types.Dataset` class and its [document](https://googleapis.dev/python/automl/0.4.0/gapic/v1beta1/types.html#google.cloud.automl_v1beta1.types.Dataset.create_time) says:
  
  > **create_time**
  > Output only. Timestamp when this dataset was created.
  
  ### What happened:
  
  `TypeError` occurs
  
  ![image](https://user-images.githubusercontent.com/96157/106237273-cf955a00-6241-11eb-91e2-2c53e4e82623.png)
  
  ### What did you expect to happen:
  
  Work.
  
  ### Environment:
  <!-- Please fill in those that seem relevant. -->
  
  How did you deploy Kubeflow Pipelines (KFP)? AI Platform Pipelines
  <!-- If you are not sure, here's [an introduction of all options](https://www.kubeflow.org/docs/pipelines/installation/overview/). -->
  
  KFP version: 1.0.4 <!-- If you are not sure, build commit shows on bottom of KFP UI left sidenav. -->
  
  KFP SDK version: 1.3.0 <!-- Please attach the output of this shell command: $pip list | grep kfp -->
  
  
  ### Anything else you would like to add:
  [Miscellaneous information that will assist in solving the issue.]
  
  /kind bug
  <!-- Please include labels by uncommenting them to help us better triage issues, choose from the following -->
  <!--
  // /area frontend
  // /area backend
  // /area sdk
  // /area testing
  // /area engprod
  -->
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `components/gcp/automl/create_dataset_for_tables/component.py`
  Content:
  ```
  1 # Copyright 2019 Google LLC
  2 #
  3 # Licensed under the Apache License, Version 2.0 (the "License");
  4 # you may not use this file except in compliance with the License.
  5 # You may obtain a copy of the License at
  6 #
  7 #      http://www.apache.org/licenses/LICENSE-2.0
  8 #
  9 # Unless required by applicable law or agreed to in writing, software
  10 # distributed under the License is distributed on an "AS IS" BASIS,
  11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12 # See the License for the specific language governing permissions and
  13 # limitations under the License.
  14 
  15 from typing import NamedTuple
  16 
  17 
  18 def automl_create_dataset_for_tables(
  19     gcp_project_id: str,
  20     gcp_region: str,
  21     display_name: str,
  22     description: str = None,
  23     tables_dataset_metadata: dict = {},
  24     retry=None, #=google.api_core.gapic_v1.method.DEFAULT,
  25     timeout: float = None, #=google.api_core.gapic_v1.method.DEFAULT,
  26     metadata: dict = None,
  27 ) -> NamedTuple('Outputs', [('dataset_path', str), ('create_time', str), ('dataset_id', str), ('dataset_url', 'URI')]):
  28     '''automl_create_dataset_for_tables creates an empty Dataset for AutoML tables
  29     '''
  30     import google
  31     from google.cloud import automl
  32     client = automl.AutoMlClient()
  33 
  34     location_path = client.location_path(gcp_project_id, gcp_region)
  35     dataset_dict = {
  36         'display_name': display_name,
  37         'description': description,
  38         'tables_dataset_metadata': tables_dataset_metadata,
  39     }
  40     dataset = client.create_dataset(
  41         location_path,
  42         dataset_dict,
  43         retry or google.api_core.gapic_v1.method.DEFAULT,
  44         timeout or google.api_core.gapic_v1.method.DEFAULT,
  45         metadata,
  46     )
  47     print(dataset)
  48     dataset_id = dataset.name.rsplit('/', 1)[-1]
  49     dataset_url = 'https://console.cloud.google.com/automl-tables/locations/{region}/datasets/{dataset_id}/schemav2?project={project_id}'.format(
  50         project_id=gcp_project_id,
  51         region=gcp_region,
  52         dataset_id=dataset_id,
  53     )
  54     return (dataset.name, dataset.create_time, dataset_id, dataset_url)
  55 
  56 
  57 if __name__ == '__main__':
  58     import kfp
  59     kfp.components.func_to_container_op(
  60         automl_create_dataset_for_tables,
  61         output_component_file='component.yaml',
  62         base_image='python:3.7',
  63         packages_to_install=['google-cloud-automl==0.4.0']
  64     )
  65
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/components/gcp/automl/create_dataset_for_tables/component.py b/components/gcp/automl/create_dataset_for_tables/component.py
  --- a/components/gcp/automl/create_dataset_for_tables/component.py
  +++ b/components/gcp/automl/create_dataset_for_tables/component.py
  @@ -51,7 +51,7 @@
           region=gcp_region,
           dataset_id=dataset_id,
       )
  -    return (dataset.name, dataset.create_time, dataset_id, dataset_url)
  +    return (dataset.name, str(dataset.create_time), dataset_id, dataset_url)
   
   
   if __name__ == '__main__':
  
verification_info: {"golden_diff": "diff --git a/components/gcp/automl/create_dataset_for_tables/component.py b/components/gcp/automl/create_dataset_for_tables/component.py\n--- a/components/gcp/automl/create_dataset_for_tables/component.py\n+++ b/components/gcp/automl/create_dataset_for_tables/component.py\n@@ -51,7 +51,7 @@\n         region=gcp_region,\n         dataset_id=dataset_id,\n     )\n-    return (dataset.name, dataset.create_time, dataset_id, dataset_url)\n+    return (dataset.name, str(dataset.create_time), dataset_id, dataset_url)\n \n \n if __name__ == '__main__':\n", "issue": "TypeErro occurs in gcp/automl/create_dataset_for_tables component\n### What steps did you take:\r\n[A clear and concise description of what the bug is.]\r\n\r\n[gcp/automl/create_dataset_for_tables component](https://github.com/kubeflow/pipelines/tree/master/components/gcp/automl/create_dataset_for_tables)'s `create_time` output is declared as a string:\r\n\r\nhttps://github.com/kubeflow/pipelines/blob/ecb14f40bb819c0678589b6458892ece5369fa71/components/gcp/automl/create_dataset_for_tables/component.yaml#L15\r\n\r\nhowever, `google.protobuf.timestamp_pb2.Timestamp` is returned in actual fact:\r\n\r\nhttps://github.com/kubeflow/pipelines/blob/ecb14f40bb819c0678589b6458892ece5369fa71/components/gcp/automl/create_dataset_for_tables/component.py#L54\r\n\r\nFYI: The `dataset` object is an instance of `google.cloud.automl_v1beta1.types.Dataset` class and its [document](https://googleapis.dev/python/automl/0.4.0/gapic/v1beta1/types.html#google.cloud.automl_v1beta1.types.Dataset.create_time) says:\r\n\r\n> **create_time**\r\n> Output only. Timestamp when this dataset was created.\r\n\r\n### What happened:\r\n\r\n`TypeError` occurs\r\n\r\n![image](https://user-images.githubusercontent.com/96157/106237273-cf955a00-6241-11eb-91e2-2c53e4e82623.png)\r\n\r\n### What did you expect to happen:\r\n\r\nWork.\r\n\r\n### Environment:\r\n<!-- Please fill in those that seem relevant. -->\r\n\r\nHow did you deploy Kubeflow Pipelines (KFP)? AI Platform Pipelines\r\n<!-- If you are not sure, here's [an introduction of all options](https://www.kubeflow.org/docs/pipelines/installation/overview/). -->\r\n\r\nKFP version: 1.0.4 <!-- If you are not sure, build commit shows on bottom of KFP UI left sidenav. -->\r\n\r\nKFP SDK version: 1.3.0 <!-- Please attach the output of this shell command: $pip list | grep kfp -->\r\n\r\n\r\n### Anything else you would like to add:\r\n[Miscellaneous information that will assist in solving the issue.]\r\n\r\n/kind bug\r\n<!-- Please include labels by uncommenting them to help us better triage issues, choose from the following -->\r\n<!--\r\n// /area frontend\r\n// /area backend\r\n// /area sdk\r\n// /area testing\r\n// /area engprod\r\n-->\r\n\n", "before_files": [{"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom typing import NamedTuple\n\n\ndef automl_create_dataset_for_tables(\n    gcp_project_id: str,\n    gcp_region: str,\n    display_name: str,\n    description: str = None,\n    tables_dataset_metadata: dict = {},\n    retry=None, #=google.api_core.gapic_v1.method.DEFAULT,\n    timeout: float = None, #=google.api_core.gapic_v1.method.DEFAULT,\n    metadata: dict = None,\n) -> NamedTuple('Outputs', [('dataset_path', str), ('create_time', str), ('dataset_id', str), ('dataset_url', 'URI')]):\n    '''automl_create_dataset_for_tables creates an empty Dataset for AutoML tables\n    '''\n    import google\n    from google.cloud import automl\n    client = automl.AutoMlClient()\n\n    location_path = client.location_path(gcp_project_id, gcp_region)\n    dataset_dict = {\n        'display_name': display_name,\n        'description': description,\n        'tables_dataset_metadata': tables_dataset_metadata,\n    }\n    dataset = client.create_dataset(\n        location_path,\n        dataset_dict,\n        retry or google.api_core.gapic_v1.method.DEFAULT,\n        timeout or google.api_core.gapic_v1.method.DEFAULT,\n        metadata,\n    )\n    print(dataset)\n    dataset_id = dataset.name.rsplit('/', 1)[-1]\n    dataset_url = 'https://console.cloud.google.com/automl-tables/locations/{region}/datasets/{dataset_id}/schemav2?project={project_id}'.format(\n        project_id=gcp_project_id,\n        region=gcp_region,\n        dataset_id=dataset_id,\n    )\n    return (dataset.name, dataset.create_time, dataset_id, dataset_url)\n\n\nif __name__ == '__main__':\n    import kfp\n    kfp.components.func_to_container_op(\n        automl_create_dataset_for_tables,\n        output_component_file='component.yaml',\n        base_image='python:3.7',\n        packages_to_install=['google-cloud-automl==0.4.0']\n    )\n", "path": "components/gcp/automl/create_dataset_for_tables/component.py"}], "after_files": [{"content": "# Copyright 2019 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#      http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nfrom typing import NamedTuple\n\n\ndef automl_create_dataset_for_tables(\n    gcp_project_id: str,\n    gcp_region: str,\n    display_name: str,\n    description: str = None,\n    tables_dataset_metadata: dict = {},\n    retry=None, #=google.api_core.gapic_v1.method.DEFAULT,\n    timeout: float = None, #=google.api_core.gapic_v1.method.DEFAULT,\n    metadata: dict = None,\n) -> NamedTuple('Outputs', [('dataset_path', str), ('create_time', str), ('dataset_id', str), ('dataset_url', 'URI')]):\n    '''automl_create_dataset_for_tables creates an empty Dataset for AutoML tables\n    '''\n    import google\n    from google.cloud import automl\n    client = automl.AutoMlClient()\n\n    location_path = client.location_path(gcp_project_id, gcp_region)\n    dataset_dict = {\n        'display_name': display_name,\n        'description': description,\n        'tables_dataset_metadata': tables_dataset_metadata,\n    }\n    dataset = client.create_dataset(\n        location_path,\n        dataset_dict,\n        retry or google.api_core.gapic_v1.method.DEFAULT,\n        timeout or google.api_core.gapic_v1.method.DEFAULT,\n        metadata,\n    )\n    print(dataset)\n    dataset_id = dataset.name.rsplit('/', 1)[-1]\n    dataset_url = 'https://console.cloud.google.com/automl-tables/locations/{region}/datasets/{dataset_id}/schemav2?project={project_id}'.format(\n        project_id=gcp_project_id,\n        region=gcp_region,\n        dataset_id=dataset_id,\n    )\n    return (dataset.name, str(dataset.create_time), dataset_id, dataset_url)\n\n\nif __name__ == '__main__':\n    import kfp\n    kfp.components.func_to_container_op(\n        automl_create_dataset_for_tables,\n        output_component_file='component.yaml',\n        base_image='python:3.7',\n        packages_to_install=['google-cloud-automl==0.4.0']\n    )\n", "path": "components/gcp/automl/create_dataset_for_tables/component.py"}]}