code: def test_dir(
      fast_and_intermediate_with_doc, slow_and_intermediate_with_doc
  ):
      Fast, FastIntermediate = fast_and_intermediate_with_doc
      Slow, SlowIntermediate = slow_and_intermediate_with_doc
  
      Pxy = make_final_proxy_type(
          "Pxy",
          Fast,
          Slow,
          fast_to_slow=lambda _: Slow(),
          slow_to_fast=lambda _: Fast(),
      )
  
      IntermediatePxy = make_intermediate_proxy_type(  # noqa: F841
          "IntermediatePxy",
          FastIntermediate,
          SlowIntermediate,
      )
  
      assert dir(Pxy) == dir(Slow)
      assert dir(Pxy()) == dir(Slow())
      assert dir(Pxy.prop) == dir(Slow.prop)
      assert dir(Pxy().prop) == dir(Slow().prop)
      assert dir(Pxy.method) == dir(Slow.method)
      assert dir(Pxy().intermediate()) == dir(Slow().intermediate())
  
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 19 for calling a global function with example usage: test_dir(fast_and_intermediate_with_doc, slow_and_intermediate_with_doc) without return types