code: def test_call_function_from_import_path():
      """Basic test for call_function_from_import_path"""
  
      # basic
      assert [1, 2, 3] == call_function_from_import_path(
          RETURN_BAD_OBJECTS_IMPORT_PATH
      )
  
      # rasie exception when callback function raise exception
      with pytest.raises(
          RuntimeError, match="this is from raise_error_callback"
      ):
          call_function_from_import_path(RAISE_ERROR_IMPORT_PATH)
  
      # raise exception when providing invalid import path
      with pytest.raises(ValueError, match="cannot be imported"):
          call_function_from_import_path("not_exist")
  
      # raise exception when providing non callable object
      with pytest.raises(TypeError, match="is not callable"):
          call_function_from_import_path(
              "ray.serve.tests.test_callback.NOT_CALLABLE_OBJECT"
          )
  
imports: import importlib
  import logging
  import os
  import sys
  import pytest
  import requests
  import starlette
  from starlette.middleware import Middleware
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve._private.common import ProxyStatus
  from ray.serve._private.utils import call_function_from_import_path
  from ray.serve.context import _get_global_client
  from ray.serve.schema import LoggingConfig, ServeInstanceDetails
label_desc: Use image node_id 6 for calling a global function with example usage: test_call_function_from_import_path() without return types