code: def set_item(df: "DataFrame", keys, items, state):
      """
      state: 1 - keys are all new
             2 - keys are all old
      """
      if state == 1:
          _set_new_item(df, keys, items)
      else:
          _set_old_item(df, keys, items)
  
file_path: FATE/python/fate/arch/dataframe/ops/_set_item.py
imports: import functools
  import numpy
  from .._dataframe import DataFrame
  from ..manager.block_manager import BlockType
  from ..manager.data_manager import DataManager
  from fate.arch.tensor import DTensor
  from fate.arch.tensor.phe._tensor import PHETensor
label_desc: Use image node_id 1 for calling a global function with example usage: set_item(df, keys, items, state) without return types