def METHOD_NAME(self, resource_type):
    if self.is_playback():
        return (
            "endpoint=https://sanitized.communication.azure.com/;accesskey=fake==="
        )
    if resource_type == CommunicationTestResourceType.UNSPECIFIED:
        return os.getenv(
            "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING"
        ) or os.getenv("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING")
    if resource_type == CommunicationTestResourceType.DYNAMIC:
        return os.getenv("COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING")
    if resource_type == CommunicationTestResourceType.STATIC:
        return os.getenv("COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING")