class_docstr: Configuration builder for Kubernetes computation resources
class_docstr_tok: ["Configuration","builder","for","Kubernetes","computation","resources"]
code: def __init__(self, cpu, memory):
      self._cpu = cpu
      self._memory, ratio = (
          parse_readable_size(memory)
          if memory is not None
          else (None, False)
      )
      assert not ratio
  
imports: from urllib.parse import urlparse
  from ...utils import parse_readable_size, calc_size_by_str
  from ..kubernetes.config import ContainerEnvConfig
label_desc: Use image node_id 1 to create a new ResourceConfig object  with example: obj = ResourceConfig(cpu, memory)