code: def make_sample(cls, sample_range):
      if len(sample_range) <= 0:
          raise RuntimeError("Cannot schedule empty batch")
      return cls(0, sample_range=sample_range)
  
imports: from typing import Optional
  from nvidia.dali.types import SampleInfo
  from nvidia.dali._multiproc.struct_message import Structure
label_desc: Use image node_id 1 for calling the TaskArgs obj's underlying member method code with example usage: obj.make_sample(cls, sample_range) and returns: cls