code: def _maybe_pack_examples(self, generator):
      
      if not self.packed_length:
        return generator
      return generator_utils.pack_examples(
          generator,
          self.has_inputs,
          self.packed_length,
          spacing=self.packed_spacing,
          chop_long_sequences=not self.has_inputs)
docs: Wraps generator with packer if self.packed_length.