docstr: Generated name of the context according to object type and name
  :return: context name
docstr_tok: ["Generated","name","of","the","context","according","to","object","type","and","name",":","return",":","context","name"]
code: def gen_context_name(self, object_type: str, object_id: int) -> str:
      """
      Generated name of the context according to object type and name
      :return: context name
      """
  
      if object_type is None:
          return ""
      if object_id is not None:
          object_type += "-" + str(object_id)
      return object_type
  
imports: from typing import List
  import pandas
  from mindsdb_sql.parser.ast import Identifier, BinaryOperation, Last, Constant, ASTNode
  from mindsdb_sql.planner.utils import query_traversal
  from mindsdb.interfaces.storage import db
  from mindsdb.utilities.context import context
  from .last_query import LastQuery
label_desc: Use image node_id 9 for calling the QueryContextController obj's underlying member method code with example usage: obj.gen_context_name(object_type, object_id) and returns: object_type, str