code: def apply_weight(loss: DataFrame, weight: DataFrame):
      return loss["loss"] * weight["weight"]
  
imports: import numpy
  import pandas
  import torch
  from fate.arch.dataframe import DataFrame
  from scipy.special import expit
  from fate.ml.utils.predict_tools import BINARY, MULTI, REGRESSION
label_desc: Use image node_id 1 for calling a global function with example usage: apply_weight(loss, weight) and returns: unknown