code: def test_frame(data, all_arithmetic_operators):
      data, scalar = data
      op = tm.get_op_from_name(all_arithmetic_operators)
      check_skip(data, all_arithmetic_operators)
  
      # DataFrame with scalar
      df = pd.DataFrame({"A": data})
  
      if is_bool_not_implemented(data, all_arithmetic_operators):
          msg = "operator '.*' not implemented for bool dtypes"
          with pytest.raises(NotImplementedError, match=msg):
              op(df, scalar)
          with pytest.raises(NotImplementedError, match=msg):
              op(data, scalar)
          return
  
      result = op(df, scalar)
      expected = pd.DataFrame({"A": op(data, scalar)})
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/arrays/masked/test_arithmetic.py
imports: from __future__ import annotations
  from typing import Any
  import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 7 for calling a global function with example usage: test_frame(data, all_arithmetic_operators) without return types