code: def _get_data_view_info(
      examples: artifact.Artifact,
  ) -> Optional[Tuple[str, int]]:
      """Returns the payload format and data view URI and ID from examples."""
      assert (
          examples.type is standard_artifacts.Examples
      ), "examples must be of type standard_artifacts.Examples"
      payload_format = examples_utils.get_payload_format(examples)
      if payload_format == example_gen_pb2.PayloadFormat.FORMAT_PROTO:
          data_view_uri = examples.get_string_custom_property(
              constants.DATA_VIEW_URI_PROPERTY_KEY
          )
          if data_view_uri:
              assert examples.has_custom_property(
                  constants.DATA_VIEW_CREATE_TIME_KEY
              )
              # The creation time could be an int or str. Legacy artifacts will contain
              # an int custom property.
              data_view_create_time = examples.get_custom_property(
                  constants.DATA_VIEW_CREATE_TIME_KEY
              )
              data_view_create_time = int(data_view_create_time)
              return data_view_uri, data_view_create_time
  
      return None
  
imports: import logging
  from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union
  import pyarrow
  import tensorflow
  from tfx.components.experimental.data_view import constants
  from tfx.components.util import examples_utils
  from tfx.proto import example_gen_pb2
  from tfx.types import artifact
  from tfx.types import standard_artifacts
  from tfx_bsl.tfxio import dataset_options
  from tfx_bsl.tfxio import parquet_tfxio
  from tfx_bsl.tfxio import raw_tf_record
  from tfx_bsl.tfxio import record_to_tensor_tfxio
  from tfx_bsl.tfxio import tf_example_record
  from tfx_bsl.tfxio import tf_sequence_example_record
  from tfx_bsl.tfxio import tfxio
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 11 for calling a global function with example usage: _get_data_view_info(examples) and returns: None, data_view_uri,  data_view_create_time