code: def scatter(n_categories=5, n=10, prefix="category", mode=None):
      """
      Returns a DataFrame with the required format for
      a scatter plot
  
      Parameters:
      -----------
              n_categories : int
                      Number of categories
              n : int
                      Number of points for each category
              prefix : string
                      Name for each category
              mode : string
                      Format for each item
                              'abc' for alphabet columns
                              'stocks' for random stock names
      """
      categories = []
      for i in range(n_categories):
          categories.extend([prefix + str(i + 1)] * n)
      return pd.DataFrame(
          {
              "x": np.random.randn(n * n_categories),
              "y": np.random.randn(n * n_categories),
              "text": getName(n * n_categories, mode=mode),
              "categories": categories,
          }
      )
  
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 7 for calling a global function with example usage: scatter(n_categories, n, prefix, mode) and returns: pd