code: def _is_displayable_last_expr(
      is_root, is_last_expr, file_ends_in_semicolon
  ):
      return (
          # This is a "displayable last expression" if...
          # ...it's actually the last expression...
          is_last_expr
          # ...in the root scope...
          and is_root
          # ...it does not end in a semicolon...
          and not file_ends_in_semicolon
          # ...and this config option is telling us to show it
          and config.get_option("magic.displayLastExprIfNoSemicolon")
      )
  
file_path: streamlit/lib/streamlit/runtime/scriptrunner/magic.py
imports: import ast
  from typing_extensions import Final
  from streamlit import config
label_desc: Use image node_id 10 for calling a global function with example usage: _is_displayable_last_expr(is_root, is_last_expr, file_ends_in_semicolon) and returns: unknown