code: def get_result_action_t(status, value):
      l_v = len(value)
      value = bytearray(value) + bytearray(
          b"\x00" * (_VALUE_BUFFER_SIZE - len(value))
      )
      value = (c_byte * _VALUE_BUFFER_SIZE).from_buffer(value)
      assert (_VALUE_BUFFER_SIZE - len(value)) >= 0
      return result_action_t(status, l_v, value)
  
file_path: cupy/cupyx/distributed/_klv_utils.py
imports: from ctypes import Structure, c_int, c_byte
label_desc: Use image node_id 2 for calling a global function with example usage: get_result_action_t(status, value) and returns: result_action_t