code: def _create_primitive_function(expr):
      func = relay.Function(relay.analysis.free_vars(expr), expr)
      func = func.with_attr("Primitive", 1)
      return func
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay.expr_functor import ExprVisitor
label_desc: Use image node_id 3 for calling a global function with example usage: _create_primitive_function(expr) and returns: func