code: def generate(cls, strategy, **kwargs):
          
          assert strategy in (enums.STUB_STRATEGY, enums.BUILD_STRATEGY, enums.CREATE_STRATEGY)
          action = getattr(cls, strategy)
          return action(**kwargs)
docs: Generate a new instance.
  
          The instance will be created with the given strategy (one of
          BUILD_STRATEGY, CREATE_STRATEGY, STUB_STRATEGY).
  
          Args:
              strategy (str): the strategy to use for generating the instance.
  
          Returns:
              object: the generated instance