fromhttpximportAsyncClientfromharp_apps.http_client.settingsimportHttpClientSettingsdef_resolve(x,*args,**kwargs):ifhasattr(x,"build"):returnx.build(*args,**kwargs)iflen(args)orlen(kwargs):raiseValueError(f"Cannot resolve {x} with args {args} and kwargs {kwargs}: parametrized lazy services must implement a build method.")returnx