class_docstr: The resources required by an operator.
  
  Resources that are not specified will use the default values from the airflow config.
  
  :param cpus: The number of cpu cores that are required
  :param ram: The amount of RAM required
  :param disk: The amount of disk space required
  :param gpus: The number of gpu units that are required
docstr: Create resources from resources dict.
docstr_tok: ["Create","resources","from","resources","dict","."]
code: def from_dict(cls, resources_dict: dict):
      """Create resources from resources dict."""
      cpus = resources_dict["cpus"]["qty"]
      ram = resources_dict["ram"]["qty"]
      disk = resources_dict["disk"]["qty"]
      gpus = resources_dict["gpus"]["qty"]
  
      return cls(cpus=cpus, ram=ram, disk=disk, gpus=gpus)
  
imports: from __future__ import annotations
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
label_desc: Use image node_id 5 for calling the Resources obj's underlying member method code with example usage: obj.from_dict(cls, resources_dict) and returns: cls