def METHOD_NAME(self, json_string: str) -> List[Dict]:
    """
    Called when there is a new JSON pose value generated by running
    preprocessor.
    Args:
        json_string: The new JSON string generated by preprocessor.
    Returns:
        An gr.update event.
    """
    hint = "Download the pose as .json file"
    html = f"""<a href='{encode_data_url(json_string)}' 
                  download='{OpenposeEditor.download_file}' title="{hint}">
                JSON</a>"""
    visible = json_string != ""
    return [
        # Download link update.
        gr.METHOD_NAME(value=html, visible=visible),
        # Modal update.
        gr.METHOD_NAME(
            visible=visible
            and not shared.opts.data.get("controlnet_disable_openpose_edit", False)
        ),
    ]