def _parse_data(file_path):
    """
    Parses the given file path into a data structure.

    :param file_path: The full file path to read.
    :type file_path: str

    :returns: The data structure contained in the file path.
    :rtype: dict
    """
    assert file_path is not None
    assert isinstance(file_path, basestring)
    assert len(file_path) > 0
    file_data = mmcamera_format.parse(file_path)
    return file_data
def _parse_data(file_path):
    """
    Parses the given file path into a data structure.

    :param file_path: The full file path to read.
    :type file_path: str

    :returns: The data structure contained in the file path.
    :rtype: dict or None
    """
    assert file_path is not None
    assert isinstance(file_path, TEXT_TYPE)
    assert len(file_path) > 0
    try:
        file_data = mmcamera_format.parse(file_path)
    except Exception as e:
        file_data = None
    return file_data