def _get_table_tags(dynamodb_client, table_arn):
    """
    Extracts tags from the given DynamoDB table ARN
    :param dynamodb_client: DynamoDB client to work with
    :param table_arn: ARN of the source DynamoDB table
    :return: List of Tags
    """
    tags = []
    kwargs = {}
    while True:
        response = dynamodb_client.list_tags_of_resource(
            ResourceArn=table_arn,
            **kwargs
        )
        tags += response['Tags']
        if 'NextToken' not in response:
            break

        kwargs['NextToken'] = response['NextToken']

    #  Add the Source Table as a tag (just for the record)
    tags.append(
        {'Source_Table': table_arn}
    )

    return tags