code: def from_chunk_size(cls, length, chunk_size):
      num_chunks = math.ceil(length / chunk_size)
      return cls(
          length=length, num_chunks=num_chunks, chunk_size=chunk_size
      )
  
imports: import math
  import numpy
  import os
  from typing import Generator, Union, Sequence
  import torch
  import torch.utils.data.dataset
label_desc: Use image node_id 6 for calling the Chunker obj's underlying member method code with example usage: obj.from_chunk_size(cls, length, chunk_size) and returns: cls