def METHOD_NAME(field: TemplateField, name: Optional[str] = None) -> None:
    FrontendNode.METHOD_NAME(field, name)
    if not isinstance(field.value, str):
        field.value = None
    if field.name == "k":
        field.required = True
        field.show = True
        field.field_type = "int"
        field.value = 10
        field.display_name = "Memory Size"
    field.password = False
    if field.name == "return_messages":
        field.required = False
        field.show = True
        field.advanced = False
    if field.name in {"input_key", "output_key"}:
        field.required = False
        field.show = True
        field.advanced = False
        field.value = ""
        field.info = (
            INPUT_KEY_INFO if field.name == "input_key" else OUTPUT_KEY_INFO
        )
    if field.name == "memory_key":
        field.value = "chat_history"
    if field.name == "chat_memory":
        field.show = True
        field.advanced = False
        field.required = False
    if field.name == "url":
        field.show = True
    if field.name == "entity_store":
        field.show = False
    if name == "ConversationEntityMemory" and field.name == "memory_key":
        field.show = False
        field.required = False
    if name == "MotorheadMemory":
        if field.name == "chat_memory":
            field.show = False
            field.required = False
        elif field.name == "client_id":
            field.show = True
            field.advanced = False