def load_context(ctx_path, ctx_type, scm=None):
if ctx_path == '<STR_LIT:->':<EOL><INDENT>return loads(sys.stdin.read(), ac_parser=ctx_type, ac_schema=scm)<EOL><DEDENT>return load(ctx_path, ac_parser=ctx_type, ac_schema=scm)<EOL>
:param ctx_path: context file path or '-' (read from stdin)
:param ctx_type: context file type
:param scm: JSON schema file in any formats anyconfig supports, to
    validate given context files