code: def safe_range(*args):
      """A range that can't generate ranges with a length of more than
      MAX_RANGE items.
      """
      rng = range_type(*args)
  
      if len(rng) > MAX_RANGE:
          raise OverflowError(
              "Range too big. The sandbox blocks ranges larger than"
              " MAX_RANGE (%d)." % MAX_RANGE
          )
  
      return rng
  
imports: import operator
  import types
  import warnings
  from collections import deque
  from string import Formatter
  from markupsafe import EscapeFormatter
  from markupsafe import Markup
  from ._compat import abc
  from ._compat import PY2
  from ._compat import range_type
  from ._compat import string_types
  from .environment import Environment
  from .exceptions import SecurityError
label_desc: Use image node_id 2 for calling a global function with example usage: safe_range() and returns: rng