def _records_from_json(path: Union[Path, str]) -> List["Record"]:
        """Creates a DatasetRecords object from a disk path.

        Parameters:
            path (str): The path to the file containing the records.

        Returns:
            DatasetRecords: The DatasetRecords object created from the disk path.

        """
        with open(path, "r") as f:
            record_dicts = json.load(f)
        records = [Record.from_dict(record_dict) for record_dict in record_dicts]
        return records
Creates a DatasetRecords object from a disk path.

        Parameters:
            path (str): The path to the file containing the records.

        Returns:
            DatasetRecords: The DatasetRecords object created from the disk path.

        
argilla/src/argilla/records/_io/_json.py