class_docstr: Wrapper around Asana Python client library.
class_docstr_tok: ["Wrapper","around","Asana","Python","client","library","."]
docstr: Create an Asana task.
  
  :param task_name: Name of the new task
  :param params: Other task attributes, such as due_on, parent, and notes. For a complete list
      of possible parameters, see https://developers.asana.com/docs/create-a-task
  :return: A dict of attributes of the created task, including its gid
docstr_tok: ["Create","an","Asana","task",".",":","param","task_name",":","Name","of","the","new","task",":","param","params",":","Other","task","attributes",",","such","as","due_on",",","parent",",","and","notes",".","For","a","complete","list","of","possible","parameters",",","see","https",":","\/\/developers.asana.com\/docs\/create-a-task",":","return",":","A","dict","of","attributes","of","the","created","task",",","including","its","gid"]
code: def create_task(self, task_name: str, params: dict | None) -> dict:
      """
      Create an Asana task.
  
      :param task_name: Name of the new task
      :param params: Other task attributes, such as due_on, parent, and notes. For a complete list
          of possible parameters, see https://developers.asana.com/docs/create-a-task
      :return: A dict of attributes of the created task, including its gid
      """
      merged_params = self._merge_create_task_parameters(
          task_name, params
      )
      self._validate_create_task_parameters(merged_params)
      response = self.client.tasks.create(params=merged_params)
      return response
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Any
  from asana import Client
  from asana.error import NotFoundError
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 7 for calling the AsanaHook obj's underlying member method code with example usage: obj.create_task(task_name, params) and returns: response