code: def parse_account(hadoop_bin, fs_name, fs_ugi):
      """parse hadoop account"""
      is_local_account = not (
          hadoop_bin is None or fs_name is None or fs_ugi is None
      )
      is_global_account = not (
          HADOOP_BIN is None or FS_NAME is None or FS_UGI is None
      )
  
      if not is_local_account and not is_global_account:
          msg = (
              "hadoop account should be setted before using hadoop commands."
              + " But got [hadoop_bin = %s], [fs_name = %s] and [fs_ugi = %s]"
              % (hadoop_bin, fs_name, fs_ugi)
          )
          raise ValueError(msg)
      elif is_global_account:
          hadoop_bin = HADOOP_BIN
          fs_name = FS_NAME
          fs_ugi = FS_UGI
  
      return hadoop_bin, fs_name, fs_ugi
  
imports: import os
  import sys
  import json
  import time
  import math
  import collections
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: parse_account(hadoop_bin, fs_name, fs_ugi) and returns: hadoop_bin,  fs_name,  fs_ugi