def simple_generate ( cls , create , * * kwargs ) : strategy = enums . CREATE_STRATEGY if create else enums . BUILD_STRATEGY return cls . generate ( strategy , * * kwargs )
inbuilt dummy veriable creation function in python
Generate a new instance .
def simple_generate(cls, create, **kwargs):
        """Generate a new instance.

        The instance will be either 'built' or 'created'.

        Args:
            create (bool): whether to 'build' or 'create' the instance.

        Returns:
            object: the generated instance
        """
        strategy = enums.CREATE_STRATEGY if create else enums.BUILD_STRATEGY
        return cls.generate(strategy, **kwargs)