code: def _add_grouping_symbols(
      op, layer_str, config
  ):  # pylint: disable=unused-argument
      """Adds symbols indicating the extent of a given object."""
  
      if len(op.wires) > 1:
          mapped_wires = [config.wire_map[w] for w in op.wires]
          min_w, max_w = min(mapped_wires), max(mapped_wires)
          layer_str[min_w] = "╭"
          layer_str[max_w] = "╰"
  
          for w in range(min_w + 1, max_w):
              layer_str[w] = "├" if w in mapped_wires else "│"
  
      return layer_str
  
file_path: pennylane/pennylane/drawer/tape_text.py
imports: from dataclasses import dataclass
  from typing import Optional
  import pennylane
  from pennylane.measurements import Expectation, Probability, Sample, Variance, State, Counts, MidMeasureMP
  from .drawable_layers import drawable_layers
  from .utils import convert_wire_order, unwrap_controls, cwire_connections, default_bit_map
label_desc: Use image node_id 1 for calling a global function with example usage: _add_grouping_symbols(op, layer_str, config) and returns: layer_str