def METHOD_NAME(self, *scopes, **kwargs):  # pylint:disable=unused-argument
    logger.debug("MSIAuthenticationWrapper.get_token: scopes=%r, kwargs=%r", scopes, kwargs)
    if 'data' in kwargs:
        from azure.cli.core.util import in_cloud_console
        if in_cloud_console():
            # Use MSAL to get VM SSH certificate
            import msal
            from .util import check_result, build_sdk_access_token
            from .identity import AZURE_CLI_CLIENT_ID
            app = msal.PublicClientApplication(
                AZURE_CLI_CLIENT_ID,  # Use a real client_id, so that cache would work
                # TODO: This PoC does not currently maintain a token cache;
                #   Ideally we should reuse the real MSAL app object which has cache configured.
                # token_cache=...,
            )
            result = app.acquire_token_interactive(list(scopes), prompt="none", data=kwargs["data"])
            check_result(result, scopes=scopes)
            return build_sdk_access_token(result)
        from azure.cli.core.azclierror import AuthenticationError
        raise AuthenticationError("VM SSH currently doesn't support managed identity.")
    # Use msrestazure to get access token
    resource = scopes_to_resource(_normalize_scopes(scopes))
    if resource:
        # If available, use resource provided by SDK
        self.resource = resource
    self.set_token()
    # VM managed identity endpoint 2018-02-01 token entry sample:
    # curl "http://169.254.169.254:80/metadata/identity/oauth2/token?resource=https://management.core.windows.net/&api-version=2018-02-01" -H "Metadata: true"
    # {
    #     "access_token": "eyJ0eXAiOiJKV...",
    #     "client_id": "da95e381-d7ab-4fdc-8047-2457909c723b",
    #     "expires_in": "86386",
    #     "expires_on": "1605238724",
    #     "ext_expires_in": "86399",
    #     "not_before": "1605152024",
    #     "resource": "https://management.core.windows.net/",
    #     "token_type": "Bearer"
    # }
    # App Service managed identity endpoint 2017-09-01 token entry sample:
    # curl "${MSI_ENDPOINT}?resource=https://management.core.windows.net/&api-version=2017-09-01" -H "secret: ${MSI_SECRET}"
    # {
    #     "access_token": "eyJ0eXAiOiJKV...",
    #     "expires_on":"11/05/2021 15:18:31 +00:00",
    #     "resource":"https://management.core.windows.net/",
    #     "token_type":"Bearer",
    #     "client_id":"df45d93a-de31-47ca-acef-081ca60d1a83"
    # }
    return AccessToken(self.token['access_token'], _normalize_expires_on(self.token['expires_on']))