code: def webcam_attach(self, path, settings):
          
          if not isinstance(path, basestring):
              raise TypeError("path can only be an instance of type basestring")
          if not isinstance(settings, basestring):
              raise TypeError("settings can only be an instance of type basestring")
          self._call("webcamAttach",
                       in_p=[path, settings])
docs: Attaches the emulated USB webcam to the VM, which will use a host video capture device.
  
          in path of type str
              The host path of the capture device to use.
  
          in settings of type str
              Optional settings.