class_docstr: World representation for the WikitableQuestions domain.
  
  Parameters
  ----------
  table_graph : ``TableQuestionKnowledgeGraph``
      Context associated with this world.
class_docstr_tok: ["World","representation","for","the","WikitableQuestions","domain",".","Parameters","--","--","--","--","--","table_graph",":","``","TableQuestionKnowledgeGraph","``","Context","associated","with","this","world","."]
docstr: Finds the production rule matching the filter function in the given type's valid action
  list, and removes it.  If there is more than one matching function, we crash.
docstr_tok: ["Finds","the","production","rule","matching","the","filter","function","in","the","given","type","'s","valid","action","list",",","and","removes","it",".","If","there","is","more","than","one","matching","function",",","we","crash","."]
code: def _remove_action_from_type(valid_actions, type_, filter_function):
      """
      Finds the production rule matching the filter function in the given type's valid action
      list, and removes it.  If there is more than one matching function, we crash.
      """
      action_list = valid_actions[type_]
      matching_action_index = [
          i
          for i, action in enumerate(action_list)
          if filter_function(action)
      ]
      assert (
          len(matching_action_index) == 1
      ), "Filter function didn't find one action"
      action_list.pop(matching_action_index[0])
  
file_path: magnitude/pymagnitude/third_party/allennlp/semparse/worlds/wikitables_world.py
imports: from __future__ import absolute_import
  import re
  from nltk.sem.logic import Type
  from allennlp.semparse.worlds.world import ParsingError, World
  from allennlp.semparse.type_declarations import wikitables_type_declaration
  from allennlp.semparse.contexts import TableQuestionKnowledgeGraph
label_desc: Use image node_id 6 for calling the WikiTablesWorld obj's underlying member method code with example usage: obj._remove_action_from_type(valid_actions, type_, filter_function) without return types