import pathlib
import json


def get_mappings_file(mappings_location):
    """Returns the ATT&CK VERIS mappings JSON file"""
    path_obj = pathlib.Path(mappings_location).resolve()
    with path_obj.open(encoding="utf-8") as f:
        return json.load(f)