def METHOD_NAME(cls, api_version=DEFAULT_API_VERSION):
    """Module depends on the API version:
       * 2020-12-01: :mod:`v2020_12_01.models<azure.synapse.managedprivateendpoints.v2020_12_01.models>`
       * 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.synapse.managedprivateendpoints.v2021_06_01_preview.models>`
    """
    if api_version == '2020-12-01':
        from ..v2020_12_01 import METHOD_NAME
        return METHOD_NAME
    elif api_version == '2021-06-01-preview':
        from ..v2021_06_01_preview import METHOD_NAME
        return METHOD_NAME
    raise ValueError("API version {} is not available".format(api_version))