code: def from_rdd(
      rdd, key_serdes_type=0, value_serdes_type=0, partitioner_type=0
  ):
      rdd = materialize(rdd)
      return Table(
          rdd=rdd,
          key_serdes_type=key_serdes_type,
          value_serdes_type=value_serdes_type,
          partitioner_type=partitioner_type,
      )
  
imports: import logging
  import struct
  import typing
  from typing import Callable, Iterable, Tuple, Optional, Any
  import pyspark
  from pyspark.rddsampler import RDDSamplerBase
  from fate.arch import URI
  from fate.arch.computing.api import KVTable, ComputingEngine, K, V
  from fate.arch.computing.api._table import _lifted_reduce_to_serdes, get_serdes_by_type
  from ._materialize import materialize, unmaterialize
label_desc: Use image node_id 4 for calling a global function with example usage: from_rdd(rdd, key_serdes_type, value_serdes_type, partitioner_type) and returns: Table