code: def ls(path, hadoop_bin=None, fs_name=None, fs_ugi=None):
      """hadoop list"""
      hadoop_bin, fs_name, fs_ugi = parse_account(
          hadoop_bin, fs_name, fs_ugi
      )
      path = check_hadoop_path(path, hadoop_bin, fs_name, fs_ugi)
      cmd = make_base_cmd(hadoop_bin, fs_name, fs_ugi)
  
      cmd += " -ls %s" % path
      cmd += " | awk '{print $8}'"
      cmd += " 2>%s" % ERR_LOG
      filelist = os.popen(cmd).read().split()
      return filelist
  
imports: import os
  import sys
  import json
  import time
  import math
  import collections
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: ls(path, hadoop_bin, fs_name, fs_ugi) and returns: filelist