Scheduler/Webserver should never use Internal API, so calling any method decorated with internal_api_call should still execute them locally
return "local-call"
    @staticmethod
    @internal_api_call
    def fake_method_with_params(dag_id: str, task_id: int, session) -> str:
        return f"local-call-with-params-{dag_id}-{task_id}"
    @classmethod
    @internal_api_call
    def fake_class_method_with_params(cls, dag_id: str, session) -> str:
        return f"local-classmethod-call-with-params-{dag_id}"
    @conf_vars(
        {
            ("core", "database_access_isolation"): "false",
            ("core", "internal_api_url"): "http://localhost:8888",
        }
    )
    @mock.patch("airflow.api_internal.internal_api_call.requests")
    def test_local_call(self, mock_requests):
        result = TestInternalApiCall.fake_method()
        assert result == "local-call"
        mock_requests.post.assert_not_called()
    @conf_vars(
        {
            ("core", "database_access_isolation"): "true",
            ("core", "internal_api_url"): "http://localhost:8888",
        }
    )
    @mock.patch("airflow.api_internal.internal_api_call.requests")
    def test_remote_call(self, mock_requests):