code: def test_correct_function_signature():
      pytest.importorskip("numba")
  
      def incorrect_function(x):
          return sum(x) * 2.7
  
      data = DataFrame(
          {
              "key": ["a", "a", "b", "b", "a"],
              "data": [1.0, 2.0, 3.0, 4.0, 5.0],
          },
          columns=["key", "data"],
      )
      with pytest.raises(NumbaUtilError, match="The first 2"):
          data.groupby("key").agg(incorrect_function, engine="numba")
  
      with pytest.raises(NumbaUtilError, match="The first 2"):
          data.groupby("key")["data"].agg(
              incorrect_function, engine="numba"
          )
  
imports: import numpy
  import pytest
  from pandas.errors import NumbaUtilError
  from pandas import DataFrame, Index, NamedAgg, Series, option_context
  import pandas._testing
label_desc: Use image node_id 1 for calling a global function with example usage: test_correct_function_signature() and returns: unknown