code: def _should_expose_method(
      func: Callable[..., Any], method_name: Text
  ) -> bool:
      return (
          callable(func)
          and method_name != "set_courier_server"
          and (
              not method_name.startswith("_")
              or method_name == "__call__"
          )
      )
  
file_path: launchpad/launchpad/nodes/courier/courier_utils.py
imports: import datetime
  import functools
  import inspect
  from typing import Any, Callable, Text
  from absl import logging
  import courier
  from courier.handlers.python import pybind
label_desc: Use image node_id 2 for calling a global function with example usage: _should_expose_method(func, method_name) and returns: unknown