code: def sanity_check_wirevector(self, w):
          
          from .wire import WireVector
          if not isinstance(w, WireVector):
              raise PyrtlError(
                  'error attempting to pass an input of type "%s" '
                  'instead of WireVector' % type(w))
docs: Check that w is a valid wirevector type.