code: def final_proxy():
      class Fast:
          def __init__(self, x):
              self.x = x
  
          def to_slow(self):
              return Slow(self.x)
  
          @classmethod
          def from_slow(cls, slow):
              return cls(slow)
  
          def __eq__(self, other):
              return self.x == other.x
  
          def method(self):
              return "fast method"
  
      class Slow:
          def __init__(self, x):
              self.x = x
  
          def __eq__(self, other):
              return self.x == other.x
  
          def method(self):
              return "slow method"
  
      Pxy = make_final_proxy_type(
          "Pxy",
          Fast,
          Slow,
          fast_to_slow=lambda fast: fast.to_slow(),
          slow_to_fast=lambda slow: Fast.from_slow(slow),
      )
      return Fast(1), Slow(1), Pxy(1)
  
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 1 for calling a global function with example usage: final_proxy() and returns: Fast,  Slow,  Pxy, Slow, cls, unknown, str, unknown, str