code: def pie(n_labels=5, mode=None):
      """
      Returns a DataFrame with the required format for
      a pie plot
  
      Parameters:
      -----------
              n_labels : int
                      Number of labels
              mode : string
                      Format for each item
                              'abc' for alphabet columns
                              'stocks' for random stock names
      """
      return pd.DataFrame(
          {
              "values": np.random.randint(1, 100, n_labels),
              "labels": getName(n_labels, mode=mode),
          }
      )
  
imports: import os
  import string
  import numpy
  import pandas
  from .auth import get_config_file
  from .exceptions import CufflinksError
label_desc: Use image node_id 6 for calling a global function with example usage: pie(n_labels, mode) and returns: pd