code: def disable_dao_fork(chain_class: Type[BaseChain]) -> Type[BaseChain]:
      
      homstead_vms_found = any(
          _is_homestead(vm_class) for _, vm_class in chain_class.vm_configuration
      )
      if not homstead_vms_found:
          raise ValidationError("No HomesteadVM found in vm_configuration.")
  
      vm_configuration = _set_vm_dao_support_false(chain_class.vm_configuration)
      return chain_class.configure(vm_configuration=vm_configuration)
docs: Set the ``support_dao_fork`` flag to ``False`` on the
      :class:`~eth.vm.forks.homestead.HomesteadVM`.  Requires that presence of
      the :class:`~eth.vm.forks.homestead.HomesteadVM`  in the
      ``vm_configuration``