### Apache Airflow version

main (development)

### What happened

When creating a DAG with Task Groups and a Mapped Operator, if the Task Group is passed as argument to Mapped Operator's `partial` method it is ignored and the operator is not added to the group.

### What you think should happen instead

The Mapped Operator should be added to the Task Group passed as an argument.

### How to reproduce

Create a DAG with a source code like the following one

```python
from airflow import DAG
from airflow.operators.bash import BashOperator
from airflow.operators.empty import EmptyOperator
from airflow.utils import timezone
from airflow.utils.task_group import TaskGroup


with DAG("dag", start_date=timezone.datetime(2016, 1, 1)) as dag:
    start = EmptyOperator(task_id="start")
    finish = EmptyOperator(task_id="finish")

    group = TaskGroup("test-group")
    commands = ["echo a", "echo b", "echo c"]
    mapped = BashOperator.partial(task_id="task_2", task_group=group).expand(bash_command=commands)

    start >> group >> finish

# assert mapped.task_group == group

```

### Operating System

macOS 13.2.1 (22D68)

### Versions of Apache Airflow Providers

_No response_

### Deployment

Other

### Deployment details

_No response_

### Anything else

_No response_

### Are you willing to submit PR?

- [X] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

from airflow.settings import _ENABLE_AIP_52
        if not _ENABLE_AIP_52:
            raise AirflowException("AIP-52 Setup tasks are disabled.")
        op = cls(*args, **kwargs)
        op._is_setup = True
        return op
    @classmethod
    def as_teardown(cls, *args, **kwargs):
        from airflow.settings import _ENABLE_AIP_52
        if not _ENABLE_AIP_52:
            raise AirflowException("AIP-52 Teardown tasks are disabled.")
        on_failure_fail_dagrun = kwargs.pop("on_failure_fail_dagrun", False)
        op = cls(*args, **kwargs)
        op._is_teardown = True
        op._on_failure_fail_dagrun = on_failure_fail_dagrun
        return op
    def __enter__(self):
        if not self._is_setup and not self._is_teardown:
            raise AirflowException("Only setup/teardown tasks can be used as context managers.")
        SetupTeardownContext.push_setup_teardown_task(self)
        return self
    def __exit__(self, exc_type, exc_val, exc_tb):
        SetupTeardownContext.set_work_task_roots_and_leaves()
    def __eq__(self, other):
        if type(self) is type(other):
            
            
            return all(getattr(self, c, None) == getattr(other, c, None) for c in self._comps)
        return False
    def __ne__(self, other):