class_docstr: An example datasource that generates ranges of numbers from [0..n).
code: def __init__(
      self,
      n: int,
      block_format: str = "arrow",
      tensor_shape: Tuple = (1,),
      column_name: Optional[str] = None,
  ):
      self._n = int(n)
      self._block_format = block_format
      self._tensor_shape = tensor_shape
      self._column_name = column_name
  
file_path: ray/python/ray/data/datasource/range_datasource.py
imports: import builtins
  from copy import copy
  from typing import Iterable, List, Optional, Tuple
  import numpy
  from ray.data._internal.util import _check_pyarrow_version
  from ray.data.block import Block, BlockAccessor, BlockMetadata
  from ray.data.context import DataContext
  from ray.data.datasource import Datasource, ReadTask
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new RangeDatasource object from inherited base classes: Datasource with example: obj = RangeDatasource(n, block_format, tensor_shape, column_name)