code: def webcam_detach(self, path):
          
          if not isinstance(path, basestring):
              raise TypeError("path can only be an instance of type basestring")
          self._call("webcamDetach",
                       in_p=[path])
docs: Detaches the emulated USB webcam from the VM
  
          in path of type str
              The host path of the capture device to detach.