code: def apply_with_upcast(data, func):
      inp = _op.cast(data, dtype="int32")
      out = func(inp)
      return _op.cast(out, "uint8")
  
imports: import numpy
  import tvm
  from tvm import relay
  from tvm.relay import expr
  from tvm.relay import op
  from tvm.relay.frontend.common import infer_shape
  from .common import logger
  from .pytorch_utils import is_version_greater_than
label_desc: Use image node_id 15 for calling a global function with example usage: apply_with_upcast(data, func) and returns: _op