def _sample_topology(self) -> bool:
        """
        Sample a new topology, clear the previous settings at first
        """
        self.number_of_sample_trial += 1
        no_cross = self._try_plug_into_previous_block()
        return no_cross

        Sample a new topology, clear the previous settings at first
        
metadrive/component/pgblock/pg_block.py