NVIDIA interview question

write python code to gather os metrics