<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_cpu_status(self, cpu):
 """Returns the current status of the given CPU. in cpu of type int The CPU id to check for. return attached of type bool Status of the CPU. """

        if not isinstance(cpu, baseinteger):
            raise TypeError("cpu can only be an instance of type baseinteger")
        attached = self._call("getCPUStatus",
                     in_p=[cpu])
        return attached