class_docstr: This class extract relations, objects or triplets from Wikidata HDT file.
class_docstr_tok: ["This","class","extract","relations",",","objects","or","triplets","from","Wikidata","HDT","file","."]
code: def define_is_boolean(query_hdt_seq):
      return len(query_hdt_seq) == 1 and all(
          [not query_hdt_seq[0][i].startswith("?") for i in [0, 2]]
      )
  
imports: import datetime
  import re
  from collections import namedtuple
  from logging import getLogger
  from typing import List, Tuple, Dict, Any, Union
  from hdt import HDTDocument
  from deeppavlov.core.commands.utils import expand_path
  from deeppavlov.core.common.file import load_pickle, read_json
  from deeppavlov.core.common.registry import register
label_desc: Use image node_id 5 for calling the WikiParser obj's underlying member method code with example usage: obj.define_is_boolean(query_hdt_seq) and returns: unknown