code: def implement_scipy(scipy_fun):
      import re
      import textwrap
  
      def wrapper(fun):
          if scipy_fun is None:
              return None
          if not fun.__doc__:
              doc_str = textwrap.dedent(scipy_fun.__doc__)
              lines = []
              for line in doc_str.splitlines(keepends=False):
                  # skip function headers
                  if line.startswith(scipy_fun.__name__ + "("):
                      continue
                  # skip version marks
                  if line.strip().startswith(".. versionadded::"):
                      continue
                  # skip examples
                  if line.strip() == "Examples":
                      break
                  lines.append(line)
              doc_str = "\n".join(lines).strip()
              # remove trailing empty sections
              fun.__doc__ = re.sub(
                  r"[A-Za-z]+\n-+$", "", doc_str
              ).strip()
          return fun
  
      return wrapper
  
imports: import inspect
  import itertools
  import operator
  from collections import OrderedDict
  from collections.abc import Iterable
  from functools import lru_cache, reduce, wraps
  from math import ceil
  from numbers import Integral
  from typing import Dict, List, Union
  import numpy
  from ..core import ExecutableTuple, recursive_tile
  from ..utils import lazy_import
  from ..lib.mmh3 import hash_from_buffer
label_desc: Use image node_id 35 for calling a global function with example usage: implement_scipy(scipy_fun) and returns: wrapper, fun, None