code: def quantified_resources(
      self,
      cpu_in_mcpu: int,
      memory_in_bytes: int,
      extra_storage_in_gib: int,
  ) -> List[QuantifiedResource]:
      assert memory_in_bytes % (1024 * 1024) == 0, memory_in_bytes
      assert isinstance(extra_storage_in_gib, int), extra_storage_in_gib
      assert is_power_two(self.cores) and self.cores <= 256, self.cores
  
      # FIXME: Only valid up to cores = 64
      worker_fraction_in_1024ths = (
          1024 * cpu_in_mcpu // (self.cores * 1000)
      )
  
      _quantified_resources = []
      for resource in self.resources:
          quantified_resource = resource.to_quantified_resource(
              cpu_in_mcpu=cpu_in_mcpu,
              memory_in_bytes=memory_in_bytes,
              worker_fraction_in_1024ths=worker_fraction_in_1024ths,
              external_storage_in_gib=extra_storage_in_gib,
          )
          if quantified_resource is not None:
              _quantified_resources.append(quantified_resource)
      return _quantified_resources
  
file_path: hail/batch/batch/instance_config.py
imports: import abc
  from typing import Dict, List, Sequence
  from .cloud.resource_utils import cores_mcpu_to_memory_bytes
  from .driver.billing_manager import ProductVersions
  from .resources import QuantifiedResource, Resource
label_desc: Use image node_id 5 for calling the InstanceConfig obj's underlying member method code with example usage: obj.quantified_resources(cpu_in_mcpu, memory_in_bytes, extra_storage_in_gib) and returns: _quantified_resources