code: def extract_all_lambdas(tree):
      lambdas = []
  
      class Visitor(ast.NodeVisitor):
          def visit_Lambda(self, node):
              lambdas.append(node)
  
      Visitor().visit(tree)
  
      return lambdas
  
imports: from __future__ import absolute_import, division, print_function
  import ast
  import hashlib
  import inspect
  import re
  import types
  from functools import wraps
  from types import ModuleType
  from hypothesis.internal.compat import ARG_NAME_ATTRIBUTE, PY2, getfullargspec, hrange, isidentifier, qualname, str_to_bytes, to_str, to_unicode, update_code_location
  from hypothesis.vendor.pretty import pretty
label_desc: Use image node_id 8 for calling a global function with example usage: extract_all_lambdas(tree) and returns: lambdas