code: def replace_at_scope(origin_list, scope, new_items):
      r"""
      Replace items of given list instance.
  
      :param list origin_list:
      :param int|list|slice scope:
          can be int indicate replace single item or their list like 1.
          can be list like (0,3) indicate replace items from 0 to 3(not included)
              or their list like [0, 3]
          can be slice which would be convert to list or their list.
      :param new_items: list
      :return list: new list
      """
  
      return replace_at_scopes(origin_list, [scope], [new_items])
  
imports: import copy
  import random
  from .logger import logger
label_desc: Use image node_id 5 for calling a global function with example usage: replace_at_scope(origin_list, scope, new_items) and returns: replace_at_scopes