code: def test_get_flight_info_error(async_client):
      async def _test():
          descriptor = flight.FlightDescriptor.for_command(b"unknown")
          with pytest.raises(NotImplementedError) as excinfo:
              await async_client.get_flight_info(descriptor)
  
          assert "Unknown command" in repr(excinfo.value)
  
      asyncio.run(_test())
  
file_path: arrow/python/pyarrow/tests/test_flight_async.py
imports: import asyncio
  import pytest
  import pyarrow
label_desc: Use image node_id 6 for calling a global function with example usage: test_get_flight_info_error(async_client) without return types