def METHOD_NAME(self):
    # Instantiate a TableServiceClient using a shared access key
    # [START auth_from_shared_key]
    from azure.data.tables import TableServiceClient
    from azure.core.credentials import AzureNamedKeyCredential
    credential = AzureNamedKeyCredential(self.account_name, self.access_key)  # type: ignore[arg-type]
    with TableServiceClient(endpoint=self.endpoint, credential=credential) as table_service:
        properties = table_service.get_service_properties()
        print("Shared Key: {}".format(properties))
    # [END auth_from_shared_key]