code: def get_remote_list(dir_in):
      args = "hdfs dfs -ls " + dir_in + " | awk '{print $8}'"
      s_output, _ = process(args)
  
      all_dart_dirs = s_output.split()
      names = []
      for filename in all_dart_dirs:
          filename = filename.decode()
          name_list = filename.split("/")
          names.append(name_list[-1])
      return names
  
imports: import os
label_desc: Use image node_id 2 for calling a global function with example usage: get_remote_list(dir_in) and returns: names