code: def name(value):
      """Modifier decorator to update a patch's name.
  
      This only modifies the behaviour of the :func:`create_patches` function
      and the :func:`patches` decorator, given that their parameter
      ``use_decorators`` is set to ``True``.
  
      Parameters
      ----------
      value : object
          Patch name.
  
      Returns
      -------
      object
          The decorated object.
      """
  
      def decorator(wrapped):
          data = get_decorator_data(
              _get_base(wrapped), set_default=True
          )
          data.override["name"] = value
          return wrapped
  
      return decorator
  
imports: import collections
  import copy
  import inspect
  import logging
  import pkgutil
  import sys
  import types
label_desc: Use image node_id 8 for calling a global function with example usage: name(value) and returns: decorator, wrapped