code: def replace(src, dest, hadoop_bin=None, fs_name=None, fs_ugi=None):
      """hadoop replace"""
      hadoop_bin, fs_name, fs_ugi = parse_account(
          hadoop_bin, fs_name, fs_ugi
      )
      src = check_hadoop_path(src, fs_name, fs_ugi)
      dest = check_hadoop_path(dest, fs_name, fs_ugi)
  
      tmp = dest + "_" + str(int(time.time()))
      cmd = make_base_cmd(hadoop_bin, fs_name, fs_ugi)
      cmd += " -mv " + dest + " " + tmp + " && "
  
      cmd += make_base_cmd(hadoop_bin, fs_name, fs_ugi)
      cmd += " -put " + src + " " + dest + " && "
  
      cmd += make_base_cmd(hadoop_bin, fs_name, fs_ugi)
      cmd += " -rmr " + tmp
      ret = os.system(cmd)
      return ret
  
imports: import os
  import sys
  import json
  import time
  import math
  import collections
  import numpy
label_desc: Use image node_id 15 for calling a global function with example usage: replace(src, dest, hadoop_bin, fs_name, fs_ugi) and returns: ret