code: def api_config(hf_endpoint: str) -> ApiConfig:
      return ApiConfig.from_env(hf_endpoint=hf_endpoint)
  
file_path: datasets-server/libs/libapi/tests/conftest.py
imports: from pathlib import Path
  from pytest import fixture
  from libapi.config import ApiConfig
label_desc: Use image node_id 5 for calling a global function with example usage: api_config(hf_endpoint) and returns: ApiConfig