code: def hdfs_connection():
      host = os.environ.get("ARROW_HDFS_TEST_HOST", "default")
      port = int(os.environ.get("ARROW_HDFS_TEST_PORT", 0))
      user = os.environ.get("ARROW_HDFS_TEST_USER", "hdfs")
      return host, port, user
  
imports: import functools
  import os
  import pathlib
  import subprocess
  import sys
  import time
  import urllib.request
  import pytest
  from pytest_lazyfixture import lazy_fixture
  import hypothesis
  from ..conftest import groups, defaults
  from pyarrow import set_timezone_db_path
  from pyarrow.util import find_free_port
label_desc: Use image node_id 7 for calling a global function with example usage: hdfs_connection() and returns: host,  port,  user