code: def test_compile_arith_masked_ops(
      op, left_dtype, right_dtype, masked
  ):
      def func(x, y):
          return op(x, y)
  
      cc = (7, 5)
  
      ty1 = from_dtype(np.dtype(left_dtype))
      ty2 = from_dtype(np.dtype(right_dtype))
  
      if masked[0]:
          ty1 = MaskedType(ty1)
      if masked[1]:
          ty2 = MaskedType(ty2)
  
      ptx, resty = compile_ptx(func, (ty1, ty2), cc=cc, device=True)
  
imports: import operator
  import cupy
  import numpy
  import pytest
  from numba import cuda, types
  from numba.cuda import compile_ptx
  from numba.np.numpy_support import from_dtype
  from cudf import NA
  from cudf.core.udf.api import Masked
  from cudf.core.udf.masked_typing import MaskedType
  from cudf.testing._utils import parametrize_numeric_dtypes_pairwise
  from cudf.utils._numba import _CUDFNumbaConfig
label_desc: Use image node_id 7 for calling a global function with example usage: test_compile_arith_masked_ops(op, left_dtype, right_dtype, masked) and returns: op