SparkContext.
resources
Return the resource information of this SparkContext. A resource could be a GPU, FPGA, etc.
SparkContext
New in version 3.0.0.