def METHOD_NAME(cloud: str, cores_in_mcpu: int, memory_in_bytes: int, worker_type: str) -> int:
    min_cores_mcpu = memory_bytes_to_cores_mcpu(cloud, memory_in_bytes, worker_type)
    return max(cores_in_mcpu, min_cores_mcpu)