code: def test_remove_decorator_nested(self):
      py_source = (
          "@foo\n@task.virtualenv\n@bar\ndef f():\nimport funcsigs"
      )
      res = remove_task_decorator(
          python_source=py_source,
          task_decorator_name="@task.virtualenv",
      )
      assert res == "@foo\n@bar\ndef f():\nimport funcsigs"
  
      py_source = (
          "@foo\n@task.virtualenv()\n@bar\ndef f():\nimport funcsigs"
      )
      res = remove_task_decorator(
          python_source=py_source,
          task_decorator_name="@task.virtualenv",
      )
      assert res == "@foo\n@bar\ndef f():\nimport funcsigs"
  
file_path: airflow/tests/utils/test_python_virtualenv.py
imports: from __future__ import annotations
  import sys
  from pathlib import Path
  from unittest import mock
  import pytest
  from airflow.utils.decorators import remove_task_decorator
  from airflow.utils.python_virtualenv import _generate_pip_conf, prepare_virtualenv
label_desc: Use image node_id 8 for calling the TestPrepareVirtualenv obj's underlying member method code with example usage: obj.test_remove_decorator_nested() without return types