code: def _get_num_rows(block: Block) -> int:
      """Get the number of rows contained in the provided block."""
      return BlockAccessor.for_block(block).num_rows()
  
file_path: ray/python/ray/data/_internal/split.py
imports: import itertools
  import logging
  from typing import Iterable, List, Tuple, Union
  import ray
  from ray.data._internal.block_list import BlockList
  from ray.data._internal.memory_tracing import trace_deallocation
  from ray.data._internal.remote_fn import cached_remote_fn
  from ray.data.block import Block, BlockAccessor, BlockExecStats, BlockMetadata, BlockPartition
  from ray.types import ObjectRef
label_desc: Use image node_id 9 for calling a global function with example usage: _get_num_rows(block) and returns: BlockAccessor