class_docstr: A base class representing an input partition returned by the `partitions()`
  method of `DataSourceReader`.
  
  .. versionadded: 4.0.0
  
  Notes
  -----
  This class must be picklable.
  
  Examples
  --------
  Use the default input partition implementation:
  
  >>> def partitions(self):
  ...     return [InputPartition(1)]
  
  Subclass the input partition class:
  
  >>> from dataclasses import dataclass
  >>> @dataclass
  ... class RangeInputPartition(InputPartition):
  ...     start: int
  ...     end: int
  
  >>> def partitions(self):
  ...     return [RangeInputPartition(1, 3), RangeInputPartition(4, 6)]
code: def __init__(self, value: Any) -> None:
      self.value = value
  
imports: from abc import ABC, abstractmethod
  from collections import UserDict
  from typing import Any, Dict, Iterator, List, Sequence, Tuple, Type, Union, TYPE_CHECKING
  from pyspark.sql import Row
  from pyspark.sql.types import StructType
  from pyspark.errors import PySparkNotImplementedError
label_desc: Use image node_id 1 to create a new InputPartition object  with example: obj = InputPartition(value)