@staticmethod
def print_data_to_file(dtype, data, file):
    """
        Print data type and data to a file (these can be passed in externally for convenience).
        args:
            dtype: data type
            data: data to be printed
            file: file object
        """
    file.write('dtype :' + dtype + '\n\n')
    if len(data) == 0:
        file.write('Structure is not defined\n')
