def METHOD_NAME(string_ptr, string_len, string_cap):
    # pylint: disable=invalid-slice-index
    py_bytes = bytes(string_ptr[:string_len.value])
    PY_LIBRARY.call(
        "ffi_reclaim_string",
        string_ptr,
        string_len,
        string_cap)
    return py_bytes