code: def test_async_first_dir():
      a = A()
      attrs = sorted(dir(a))
      real_attrs = [a for a in attrs if not a.startswith("_")]
      assert real_attrs == [
          "a",
          "async_method",
          "async_method_sync",
          "sync_method",
      ]
  
file_path: ipyparallel/ipyparallel/tests/test_async.py
imports: import pytest
  from ipyparallel._async import AsyncFirst
label_desc: Use image node_id 1 for calling a global function with example usage: test_async_first_dir() without return types