code: def _get_arg_metadata(arg: object) -> Optional[str]:
      """Get metadata information related to the value of the given object."""
      with contextlib.suppress(Exception):
          if isinstance(arg, (bool)):
              return f"val:{arg}"
  
          if isinstance(arg, Sized):
              return f"len:{len(arg)}"
  
      return None
  
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 4 for calling a global function with example usage: _get_arg_metadata(arg) and returns: None, str, arg, str, len