def new_space(self, name=None, bases=None, formula=None, refs=None):
space = self._impl.model.currentspace = self._impl.new_space(<EOL>name=name, bases=get_impls(bases), formula=formula, refs=refs<EOL>)<EOL>return space.interface<EOL>
Create a child space.

        Args:
            name (str, optional): Name of the space. Defaults to ``SpaceN``,
                where ``N`` is a number determined automatically.
            bases (optional): A space or a sequence of spaces to be the base
                space(s) of the created space.
            formula (optional): Function to specify the parameters of
                dynamic child spaces. The signature of this function is used
                for setting parameters for dynamic child spaces.
                This function should return a mapping of keyword arguments
                to be passed to this method when the dynamic child spaces
                are created.

        Returns:
            The new child space.