class_docstr: Prompt to explain code generation by the LLM
class_docstr_tok: ["Prompt","to","explain","code","generation","by","the","LLM"]
code: def _prepare_tables_data(self, tables):
      tables_join = []
      for table in tables:
          table_description_tag = (
              f' description="{table.table_description}"'
              if table.table_description is not None
              else ""
          )
          table_head_tag = f'<table name="{table.table_name}"{table_description_tag}>'
          table = f"{table_head_tag}\n{table.head_csv}\n</table>"
          tables_join.append(table)
      return "\n\n".join(tables_join)
  
imports: from .generate_python_code import CurrentCodePrompt, GeneratePythonCodePrompt
label_desc: Use image node_id 1 for calling the DirectSQLPrompt obj's underlying member method code with example usage: obj._prepare_tables_data(tables) and returns: str