docstr: Yield successive chunks of len=chunksize from values.
code: def _chunk(
      values: list, chunksize: int
  ) -> Generator[List, None, None]:
      """Yield successive chunks of len=chunksize from values."""
      for i in range(0, len(values), chunksize):
          yield values[i : i + chunksize]
  
imports: import copy
  import logging
  from functools import partial
  from typing import Any, Callable, Dict, Generator, List, Optional, Tuple, Union
  import numpy
  from scipy import sparse
  import ray
label_desc: Use image node_id 9 for calling the ActorPool obj's underlying member method code with example usage: obj._chunk(values, chunksize) without return types