docstr: Create a new CustomQueryObject.
  
  Parameters
  -----------
  
  query : function
      Function that defines a custom query method. The query can have any
      signature, but input and output of the query needs to be JSON
      serializable.
  
  description : str
      The description of the custom query object
docstr_tok: ["Create","a","new","CustomQueryObject",".","Parameters","--","--","--","--","--","-","query",":","function","Function","that","defines","a","custom","query","method",".","The","query","can","have","any","signature",",","but","input","and","output","of","the","query","needs","to","be","JSON","serializable",".","description",":","str","The","description","of","the","custom","query","object"]
code: def __init__(self, query, description=""):
      """Create a new CustomQueryObject.
  
      Parameters
      -----------
  
      query : function
          Function that defines a custom query method. The query can have any
          signature, but input and output of the query needs to be JSON
          serializable.
  
      description : str
          The description of the custom query object
  
      """
      super().__init__(description)
  
      self.custom_query = query
  
file_path: TabPy/tabpy/tabpy_tools/custom_query_object.py
imports: import logging
  from .query_object import QueryObject
label_desc: Use image node_id 1 to create a new CustomQueryObject object from inherited base classes: _QueryObject with example: obj = CustomQueryObject(query, description)