def copy_context(context: Optional[InferenceContext]) -> InferenceContext:
if context is not None:<EOL><INDENT>return context.clone()<EOL><DEDENT>return InferenceContext()<EOL>
Clone a context if given, or return a fresh contexxt