code: def is_unexpected(name):
      """Check if this needs to be considered."""
      if "._" in name or ".tests" in name or ".setup" in name:
          return False
  
      if name in PUBLIC_MODULES:
          return False
  
      if name in PRIVATE_BUT_PRESENT_MODULES:
          return False
  
      return True
  
file_path: scipy/scipy/_lib/tests/test_public_api.py
imports: import pkgutil
  import types
  import importlib
  import warnings
  from importlib import import_module
  import pytest
  import scipy
  from scipy.conftest import xp_available_backends
label_desc: Use image node_id 2 for calling a global function with example usage: is_unexpected(name) and returns: True, False, False, False