code: def filter_topic_selected_callback(indices, old, new):
      # update all_topics according to new selected items
      logger.info("filter topic callback")
      filter_label.text = "Please Wait..."
      global all_topics, apply_filter
      if (
          filter_item != -1
      ):  # on filter/search state there are None values so need
          # to separate this case
          apply_filter = True
          if filter_item in new:
              all_topics[filter_item][filter_tabs.active + 1] = "1"
          else:
              all_topics[filter_item][filter_tabs.active + 1] = "0"
      elif new != [-1]:
          apply_filter = True
          selected_topics = [
              filter_topics_table_source.data["topics"][x] for x in new
          ]
          for i, line in enumerate(all_topics):
              if line[0] in selected_topics:
                  all_topics[i][1] = "1"
              else:
                  all_topics[i][1] = "0"
      filter_label.text = ""
  
imports: import csv
  import logging
  import time
  from os import path
  from os.path import isfile
  import pandas
  from bokeh.io import curdoc
  from bokeh.layouts import column, layout, WidgetBox
  from bokeh.models import ColumnDataSource, Div, Row, ranges, LabelSet, CDSView, IndexFilter
  from bokeh.models.widgets import DataTable, TableColumn, RadioGroup, Dropdown, Tabs, Panel, TextInput, Button, Slider
  from bokeh.plotting import figure
  from trend_analysis import analyze
  from nlp_architect import LIBRARY_OUT
label_desc: Use image node_id 27 for calling a global function with example usage: filter_topic_selected_callback(indices, old, new) without return types