code: def _get_colab_notebook_content():
      """Returns the colab notebook python code contents."""
      response = _message.blocking_request(
          "get_ipynb", request="", timeout_sec=200
      )
      if response is None:
          raise RuntimeError("Unable to get the notebook contents.")
      cells = response["ipynb"]["cells"]
      py_content = []
      for cell in cells:
          if cell["cell_type"] == "code":
              # Add newline char to the last line of a code cell.
              cell["source"][-1] += "\n"
  
              # Combine all code cells.
              py_content.extend(cell["source"])
      return py_content
  
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 2 for calling a global function with example usage: _get_colab_notebook_content() and returns: py_content