code: def _from_j_result_kind(j_result_kind):
      gateway = get_gateway()
      JResultKind = gateway.jvm.org.apache.flink.table.api.ResultKind
      if j_result_kind == JResultKind.SUCCESS:
          return ResultKind.SUCCESS
      elif j_result_kind == JResultKind.SUCCESS_WITH_CONTENT:
          return ResultKind.SUCCESS_WITH_CONTENT
      else:
          raise Exception(
              "Unsupported Java result kind: %s" % j_result_kind
          )
  
label_desc: Use image node_id 1 for calling the ResultKind obj's underlying member method code with example usage: obj._from_j_result_kind(j_result_kind) and returns: ResultKind, ResultKind