code: def sample_data(df, n, random_state):
      if n == 0:
          return
      else:
          return df.sample(n=n, random_state=random_state)
  
file_path: FATE/python/fate/ml/model_selection/data_split.py
imports: import logging
  from fate.arch import Context
  from fate.arch.dataframe import DataFrame
  from ..abc.module import Module
label_desc: Use image node_id 1 for calling a global function with example usage: sample_data(df, n, random_state) and returns: df