def call_command(cmd_name, args_strings):
if not op.isabs(cmd_name):<EOL><INDENT>cmd_fullpath = which(cmd_name)<EOL><DEDENT>else:<EOL><INDENT>cmd_fullpath = cmd_name<EOL><DEDENT>try:<EOL><INDENT>cmd_line = [cmd_fullpath] + args_strings<EOL>log.info('<STR_LIT>'.format(cmd_line))<EOL>retval = subprocess.check_call(cmd_line)<EOL><DEDENT>except CalledProcessError as ce:<EOL><INDENT>log.exception("<STR_LIT>"<EOL>"<STR_LIT>".format(cmd_name, args_strings,<EOL>ce.returncode))<EOL>raise<EOL><DEDENT>else:<EOL><INDENT>return retval<EOL><DEDENT>
Call CLI command with arguments and returns its return value.

    Parameters
    ----------
    cmd_name: str
        Command name or full path to the binary file.

    arg_strings: list of str
        Argument strings list.

    Returns
    -------
    return_value
        Command return value.