code: def swap_at_index(origin_list, first_index, second_index):
      r"""
      Swap items between first_index and second_index of origin_list
  
      :param list origin_list:
      :param int first_index:
      :param int second_index:
      :return list:
      """
  
      if max(first_index, second_index) > len(origin_list) - 1:
          raise ValueError(
              f"Can't swap {0} and {1} index to items {2} of {3} length".format(
                  first_index,
                  second_index,
                  origin_list,
                  len(origin_list),
              )
          )
  
      return _replace_at_scopes(
          origin_list,
          [first_index, second_index],
          [origin_list[second_index], origin_list[first_index]],
      )
  
imports: import copy
  import random
  from .logger import logger
label_desc: Use image node_id 13 for calling a global function with example usage: swap_at_index(origin_list, first_index, second_index) and returns: _replace_at_scopes