class_docstr: Add extra entity-related clause to text
class_docstr_tok: ["Add","extra","entity-related","clause","to","text"]
docstr: obtain entity description
  
  :param string query: name of query entity
  :return string: entity description
docstr_tok: ["obtain","entity","description",":","param","string","query",":","name","of","query","entity",":","return","string",":","entity","description"]
code: def get_clause(self, query):
      r"""
      obtain entity description
  
      :param string query: name of query entity
      :return string: entity description
  
      """
      assert isinstance(
          query, str
      ), f"the type of 'query' should be str, got {type(query)} instead"
      scrsl = self.search_list(query)
      clauseadd = ""
      if scrsl:
          entinf = scrsl[0]
          clauseadd = self._get_clause(entinf["id"])
      return clauseadd
  
file_path: textflint/textflint/generation/transformation/RE/insert_clause.py
imports: import urllib.request
  import wikidata
  from wikidata.client import Client
  import random
  import json
  from ....common.utils.error import FlintError
  from ...transformation import Transformation
  from ....input.component.sample.re_sample import RESample
  from ....common.settings import WIKIDATA_STATEMENTS_no_zero, CLAUSE_HEAD_no_zero, scbase
label_desc: Use image node_id 5 for calling the InsertClause obj's underlying member method code with example usage: obj.get_clause(query) and returns: clauseadd