class_docstr: RedisGraph Commands
class_docstr_tok: ["RedisGraph","Commands"]
docstr: Get the execution plan for given query,
  GRAPH.EXPLAIN returns an array of operations.
  
  Args:
      query: the query that will be executed
      params: query parameters
docstr_tok: ["Get","the","execution","plan","for","given","query",",","GRAPH.EXPLAIN","returns","an","array","of","operations",".","Args",":","query",":","the","query","that","will","be","executed","params",":","query","parameters"]
code: def execution_plan(self, query, params=None):
      """
      Get the execution plan for given query,
      GRAPH.EXPLAIN returns an array of operations.
  
      Args:
          query: the query that will be executed
          params: query parameters
      """
      query = self._build_params_header(params) + query
  
      plan = self.execute_command(EXPLAIN_CMD, self.name, query)
      if isinstance(plan[0], bytes):
          plan = [b.decode() for b in plan]
      return "\n".join(plan)
  
file_path: catboost/contrib/python/redis/py3/redis/commands/graph/commands.py
imports: from redis import DataError
  from redis.exceptions import ResponseError
  from .exceptions import VersionMismatchException
  from .execution_plan import ExecutionPlan
  from .query_result import AsyncQueryResult, QueryResult
label_desc: Use image node_id 11 for calling the GraphCommands obj's underlying member method code with example usage: obj.execution_plan(query, params) and returns: str