def resolve_code_path(cwd, codeuri):
LOG.debug("<STR_LIT>", cwd, codeuri)<EOL>if not cwd or cwd == PRESENT_DIR:<EOL><INDENT>cwd = os.getcwd()<EOL><DEDENT>cwd = os.path.abspath(cwd)<EOL>if not os.path.isabs(codeuri):<EOL><INDENT>codeuri = os.path.normpath(os.path.join(cwd, codeuri))<EOL><DEDENT>return codeuri<EOL>
Returns path to the function code resolved based on current working directory.

Parameters
----------
cwd str
    Current working directory
codeuri
    CodeURI of the function. This should contain the path to the function code

Returns
-------
str
    Absolute path to the function code