code: def chunk_bytes(
      data: bytes,
      field_name: Union[str, int],
      builder: _DynamicStructBuilder,
  ) -> None:
      CHUNK_SIZE = int(5.12e8)  # capnp max for a List(Data) field
      list_size = len(data) // CHUNK_SIZE + 1
      data_lst = builder.init(field_name, list_size)
      END_INDEX = CHUNK_SIZE
      for idx in range(list_size):
          START_INDEX = idx * CHUNK_SIZE
          END_INDEX = min(START_INDEX + CHUNK_SIZE, len(data))
          data_lst[idx] = data[START_INDEX:END_INDEX]
  
imports: from enum import Enum
  from enum import EnumMeta
  import sys
  import types
  from typing import Any
  from typing import Callable
  from typing import List
  from typing import Optional
  from typing import Set
  from typing import Type
  from typing import Union
  from capnp.lib.capnp import _DynamicStructBuilder
  from pydantic import BaseModel
  import syft
  from ..util.util import get_fully_qualified_name
  from ..util.util import index_syft_by_module_name
  from .capnp import get_capnp_schema
label_desc: Use image node_id 4 for calling a global function with example usage: chunk_bytes(data, field_name, builder) without return types