code: def ga_session_to_tensorflow_examples(session: List[Any]):
      """Converts a Google Analytics Session to Tensorflow Examples."""
      examples = []
      for i in range(len(session) - 1):
          features = {
              # Add any additional desired training features here.
              "cur_page": [
                  _sanitize_page_path(session[i]["page"]["pagePath"])
              ],
              "label": [
                  _sanitize_page_path(
                      session[i + 1]["page"]["pagePath"]
                  )
              ],
              "session_index": [i],
          }
          examples.append(create_tensorflow_example(features))
      return examples
  
file_path: tfx/tfx/examples/tfjs_next_page_prediction/bigquery_beam_data_generation.py
imports: from typing import Any, Dict, List, Union
  import apache_beam
  from apache_beam.io.gcp.internal.clients import bigquery
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: ga_session_to_tensorflow_examples(session) and returns: examples