def METHOD_NAME(self, node_name) -> NodeInfo:
    """Return mem and cpu info for this host."""
    info = NodeInfo({})
    cpus = subprocess.check_output(['nproc']).strip().decode('utf8')
    try:
        info['cpus'] = int(cpus)
    except ValueError:
        pass
    with Path('/proc/meminfo').open() as meminfo_file:
        for line in meminfo_file.readlines():
            if line.startswith('MemTotal:'):
                parts = line.split()
                if len(parts) > 2:
                    try:
                        info['mem'] = int(parts[1])//1024**2
                    except ValueError:
                        pass
                break
    return info