code: def mock_metadata(
      widget_id: str, default_value: int
  ) -> WidgetMetadata:
      return WidgetMetadata(
          id=widget_id,
          deserializer=lambda x, s: default_value if x is None else x,
          serializer=lambda x: x,
          value_type="int_value",
      )
  
file_path: streamlit/lib/tests/streamlit/runtime/state/strategies.py
imports: from hypothesis import strategies
  from streamlit.runtime.state.common import GENERATED_WIDGET_ID_PREFIX
  from streamlit.runtime.state.session_state import SessionState, WidgetMetadata
label_desc: Use image node_id 2 for calling a global function with example usage: mock_metadata(widget_id, default_value) and returns: WidgetMetadata