docstr: Create operator from given class and render fields.
  
  This might help to prevent of unexpected behaviour in Jinja/task field serialisation
docstr_tok: ["Create","operator","from","given","class","and","render","fields",".","This","might","help","to","prevent","of","unexpected","behaviour","in","Jinja\/task","field","serialisation"]
code: def create_rendered_task(
      self, operator_class: type[_Operator], **kwargs
  ) -> _Operator:
      """
      Create operator from given class and render fields.
  
      This might help to prevent of unexpected behaviour in Jinja/task field serialisation
      """
      return self.ti_maker(
          operator_class,
          dag_id=self.dag_id,
          task_id=self.task_id,
          execution_date=timezone.datetime(2021, 12, 21),
          **kwargs,
      ).render_templates()
  
imports: from __future__ import annotations
  from typing import TypeVar
  from unittest import mock
  import boto3
  import pytest
  from slugify import slugify
  from airflow.exceptions import AirflowException, AirflowSkipException
  from airflow.providers.amazon.aws.sensors.ecs import EcsBaseSensor, EcsClusterStates, EcsClusterStateSensor, EcsHook, EcsTaskDefinitionStates, EcsTaskDefinitionStateSensor, EcsTaskStates, EcsTaskStateSensor, _check_failed
  from airflow.utils import timezone
  from airflow.utils.types import NOTSET
label_desc: Use image node_id 2 for calling the EcsBaseTestCase obj's underlying member method code with example usage: obj.create_rendered_task(operator_class) and returns: self