code: def test_special_methods():
      class Fast:
          def __abs__(self):
              pass
  
          def __gt__(self):
              pass
  
      class Slow:
          def __gt__(self):
              pass
  
      Pxy = make_final_proxy_type(
          "Pxy",
          Fast,
          Slow,
          fast_to_slow=lambda _: Slow(),
          slow_to_fast=lambda _: Fast(),
      )
  
      # test that special methods defined _only_ on the
      # fast type are not accessible on the proxy:
      assert not hasattr(Pxy, "__abs__")
      assert not hasattr(Pxy(), "__abs__")
  
      # test that special methods defined on the
      # slow type are accessible on the proxy:
      assert hasattr(Pxy, "__gt__")
      assert hasattr(Pxy(), "__gt__")
  
imports: import inspect
  from functools import partial
  from io import StringIO
  import numpy
  import pytest
  from cudf.pandas.fast_slow_proxy import _fast_arg, _FunctionProxy, _slow_arg, _transform_arg, _Unusable, make_final_proxy_type, make_intermediate_proxy_type
label_desc: Use image node_id 15 for calling a global function with example usage: test_special_methods() without return types