def _create_conda_cmd(conda_cmd, args=None, env=None, user=None):
cmd = [_get_conda_path(user=user), conda_cmd]<EOL>if env:<EOL><INDENT>cmd.extend(['<STR_LIT>', env])<EOL><DEDENT>if args is not None and isinstance(args, list) and args != []:<EOL><INDENT>cmd.extend(args)<EOL><DEDENT>return cmd<EOL>
Utility to create a valid conda command