import ast
import traceback


def validate_internal_data(internal_data_str):
    """Validate that internal data string of Python code
    does not contain SyntaxError
    """
    try:
        ast.parse(internal_data_str, filename='')
    except SyntaxError:
        return [traceback.format_exc(limit=0)]
    return []