docs: def _wrap_in_place(func):  # noqa: D202
          """Take a function that doesn't return the graph and returns the graph."""
  
          @wraps(func)
          def wrapper(graph, *args, **kwargs):
              """Apply the enclosed function and returns the graph."""
              func(graph, *args, **kwargs)
              return graph
  
          return wrapper