code: def _safe_get_methods(self, classes, name) -> Set[Callable]:
      return {
          method
          for class_ in classes
          for method in [getattr(class_, name, None)]
          if method
      }
  
imports: from inspect import signature, Signature
  from typing import Any, Callable, Dict, Set, Sequence, Tuple, NamedTuple, Type, Literal, Union, TYPE_CHECKING
  import ast
  import builtins
  import collections
  import operator
  import sys
  from functools import cached_property
  from dataclasses import dataclass, field
  from types import MethodDescriptorType, ModuleType
  from IPython.utils.docs import GENERATING_DOCUMENTATION
  from IPython.utils.decorators import undoc
label_desc: Use image node_id 8 for calling the SelectivePolicy obj's underlying member method code with example usage: obj._safe_get_methods(classes, name) and returns: unknown