code: def _get_top_level_module(func: Callable[..., Any]) -> str:
      """Get the top level module for the given function."""
      module = inspect.getmodule(func)
      if module is None or not module.__name__:
          return "unknown"
      return module.__name__.split(".")[0]
  
imports: import contextlib
  import inspect
  import os
  import sys
  import threading
  import time
  import uuid
  from collections.abc import Sized
  from functools import wraps
  from timeit import default_timer
  from typing import Any, Callable, List, Optional, Set, TypeVar, Union, cast, overload
  from typing_extensions import Final
  from streamlit import config, util
  from streamlit.logger import get_logger
  from streamlit.proto.ForwardMsg_pb2 import ForwardMsg
  from streamlit.proto.PageProfile_pb2 import Argument, Command
label_desc: Use image node_id 3 for calling a global function with example usage: _get_top_level_module(func) and returns: module, str