code: def get_device_activity(self, type_p):
          
          if not isinstance(type_p, list):
              raise TypeError("type_p can only be an instance of type list")
          for a in type_p[:10]:
              if not isinstance(a, DeviceType):
                  raise TypeError(
                          "array can only contain objects of type DeviceType")
          activity = self._call("getDeviceActivity",
                       in_p=[type_p])
          activity = [DeviceActivity(a) for a in activity]
          return activity
docs: Gets the current activity type of given devices or device groups.
  
          in type_p of type :class:`DeviceType`
  
          return activity of type :class:`DeviceActivity`
  
          raises :class:`OleErrorInvalidarg`
              Invalid device type.