code: def test_expand_fail_empty():
      @dag(start_date=pendulum.datetime(2022, 1, 1))
      def pipeline():
          @task_group()
          def tg():
              pass
  
          tg.expand()
  
      with pytest.raises(TypeError) as ctx:
          pipeline()
      assert str(ctx.value) == "no arguments to expand against"
  
file_path: airflow/tests/decorators/test_task_group.py
imports: from __future__ import annotations
  from datetime import timedelta
  import pendulum
  import pytest
  from airflow.decorators import dag, task_group
  from airflow.models.expandinput import DictOfListsExpandInput, ListOfDictsExpandInput, MappedArgument
  from airflow.operators.empty import EmptyOperator
  from airflow.utils.task_group import MappedTaskGroup
label_desc: Use image node_id 5 for calling a global function with example usage: test_expand_fail_empty() without return types