code: def _get_kaggle_notebook_content():
      """Returns the kaggle notebook python code contents."""
      if PythonExporter is None:
          raise RuntimeError(
              # This should never occur.
              # `nbconvert` is always installed on Kaggle.
              "Please make sure you have installed `nbconvert` package."
          )
      from kaggle_session import (
          UserSessionClient,
      )  # pylint: disable=g-import-not-at-top  # pytype: disable=import-error
  
      kaggle_session_client = UserSessionClient()
      try:
          response = kaggle_session_client.get_exportable_ipynb()
          ipynb_stream = io.StringIO(response["source"])
          py_content, _ = PythonExporter().from_file(ipynb_stream)
          return py_content.splitlines(keepends=True)
      except:
          raise RuntimeError("Unable to get the notebook contents.")
  
file_path: cloud/src/python/tensorflow_cloud/core/preprocess.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import io
  import logging
  import os
  import sys
  import tempfile
  from .None import machine_config
label_desc: Use image node_id 3 for calling a global function with example usage: _get_kaggle_notebook_content() and returns: py_content