code: def from_nvim(cls, nvim):
          
          return cls(nvim._session, nvim.channel_id, nvim.metadata,
                     nvim.types, nvim._decode, nvim._err_cb)
docs: Create a new Nvim instance from an existing instance.