code: def ternary_op(self, lhs, rhs, other, op):
      return TensorHandle(
          op(lhs.data, rhs.data, other.data), other.dtype
      )
  
imports: import inspect
  import numpy
  import triton
  import triton.language
  from .._C.libtriton import interpreter
label_desc: Use image node_id 25 for calling the Builder obj's underlying member method code with example usage: obj.ternary_op(lhs, rhs, other, op) and returns: TensorHandle