def METHOD_NAME(self, instance: Dict):
    """parser an packed MMOCR format textrecog instance.
    Args:
        instance (Dict): An packed MMOCR format textrecog instance.
            For example,
            {
                "instance": [
                    {
                        "text": "Hello"
                    }
                ],
                "img_path": "img1.jpg"
            }
    """
    assert isinstance(instance,
                      Dict), 'Element of data_list must be a dict'
    assert 'img_path' in instance and 'instances' in instance, \
        'Element of data_list must have the following keys: ' \
        f'img_path and instances, but got {instance.keys()}'
    assert isinstance(instance['instances'], List) and len(
        instance['instances']) == 1
    assert 'text' in instance['instances'][0]
    img_path = instance['img_path']
    text = instance['instances'][0]['text']
    return img_path, text