docs: def set_install_dir(self, install_dir=None, version=None, verbose=False):
          """
          Sets the path to the cassandra source directory for use by this node.
          """
          if version is None:
              self.__install_dir = install_dir
              if install_dir is not None:
                  common.validate_install_dir(install_dir)
          else:
              self.__install_dir = self.node_setup(version, verbose=verbose)
  
          self._cassandra_version = common.get_version_from_build(self.__install_dir, cassandra=True)
  
          if self.get_base_cassandra_version() >= 4.0:
              self.network_interfaces['thrift'] = None
  
          self.import_config_files()
          self.import_bin_files()
          self.__conf_updated = False
          return self