code: def _format_range_unified(start, stop):
      'Convert range to the "ed" format'
      # Per the diff spec at http://www.unix.org/single_unix_specification/
      beginning = start + 1  # lines start numbering with one
      length = stop - start
      if length == 1:
          return "{}".format(beginning)
      if not length:
          beginning -= (
              1  # empty ranges begin at line just before the range
          )
      return "{},{}".format(beginning, length)
  
imports: from heapq import nlargest
  from collections import namedtuple
  from types import GenericAlias
  import re
label_desc: Use image node_id 6 for calling a global function with example usage: _format_range_unified(start, stop) and returns: str, str