def check_admin_priviledge(args):
  status, short_user_name = service_config.get_short_user_name_full()
  args.short_user_name = short_user_name

  if is_security_enabled(args):
    if status:
      admin_list = get_deploy_config().get_admin_list()
      if short_user_name not in admin_list:
        Log.print_critical("User %s is not an authorized administrator, "
          "this operation can't be processed" % short_user_name)
    else:
      Log.print_critical('You must kinit your kerberos principal first')
Test writing an Relationships file.
dataset/ETHPy150Open XiaoMi/minos/client/deploy_utils.py/check_admin_priviledge--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/relationships/test_relationships01.py/TestAssembleRelationships.test_assemble_xml_file