def METHOD_NAME(self, name):
    if not self.live_test and not self.test_class_instance.in_recording:
        return MOCK_GUID, MOCK_SECRET
    client_id, client_secret = self._generate_csp(name)
    # call AbstractPreparer.moniker to make resource counts and self.resource_moniker consistent between live
    # and play-back. see SingleValueReplacer.process_request, AbstractPreparer.__call__._preparer_wrapper
    # and ScenarioTest.create_random_name. This is so that when self.create_random_name is called for the
    # first time during live or playback, it would have the same value.
    # In short, the default sp preparer in live mode does not call moniker, which leads to inconsistent counts.
    _ = self.moniker
    self.client_id_to_replace = client_id
    self.client_secret_to_replace = client_secret
    return client_id, client_secret