def api_level(cmd, name):
 if (cmd in _api_table):
  return _api_table[cmd][1]
 if ((name == 'queue') and (cmd in _api_queue_table)):
  return _api_queue_table[cmd][1]
 if ((name == 'config') and (cmd in _api_config_table)):
  return _api_config_table[cmd][1]
 return 4

def api_level ( cmd , name ) : if ( cmd in _api_table ) : return _api_table [ cmd ] [ 1 ] if ( ( name == 'queue' ) and ( cmd in _api_queue_table ) ) : return _api_queue_table [ cmd ] [ 1 ] if ( ( name == 'config' ) and ( cmd in _api_config_table ) ) : return _api_config_table [ cmd ] [ 1 ] return 4
return access level required for this api call .