code: def _dict_to_dataframe(dictionary):
      """Turn a dict object into a dataframe of with label and value columns."""
      df = pd.DataFrame(
          {
              "label": list(dictionary.keys()),
              "value": list(dictionary.values()),
          }
      )
      return df
  
imports: import io
  import json
  import os
  import altair
  import numpy
  import pandas
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _dict_to_dataframe(dictionary) and returns: df