code: def get_expand_results_callback():
      """
      Send to the server the seed to expand and set the results in the expand
      table.
      """
      logger.info("### new expand request")
      working_label.text = working_text
      global seed_check_text, table_area
      try:
          seed_check_label.text = ""
          table_area.children = [table_layout]
          seed = seed_input_box.value
          logger.info("input seed: %s", seed)
          if seed == "":
              expand_table_source.data = empty_table
              return
          seed_words = [x.strip() for x in seed.split(",")]
          bad_words = ""
          for w in seed_words:
              res = send_request_to_server(["in_vocab", w])
              if res is False:
                  bad_words += "'" + w + "',"
          if bad_words != "":
              seed_check_label.text = (
                  'the words: <span class="bad-word">'
                  + bad_words[:-1]
                  + "</span> are not in the vocabulary and will be ignored"
              )
              logger.info("setting table area")
              table_area.children = [seed_check_label, table_layout]
          logger.info(
              "sending expand request to server with seed= %s", seed
          )
          received = send_request_to_server(["expand", seed])
          if received is not None:
              res = [x[0] for x in received]
              scores = ["{0:.5f}".format(y[1]) for y in received]
              logger.info("setting table data")
              expand_table_source.data = {"res": res, "score": scores}
          else:
              logger.info("Nothing received from server")
      except Exception as e:
          logger.info("Exception: %s", str(e))
      finally:
          working_label.text = ""
  
imports: import socket
  import pickle
  import logging
  import re
  from os.path import dirname, join
  from bokeh.layouts import column, layout
  from bokeh.models import ColumnDataSource, Div, Row, CustomJS
  from bokeh.models.widgets import Button, DataTable, TableColumn, CheckboxGroup, MultiSelect
  from bokeh.models.widgets.inputs import TextInput
  from bokeh.io import curdoc
  from settings import grouping, expand_host, expand_port
label_desc: Use image node_id 6 for calling a global function with example usage: get_expand_results_callback() without return types