# Path: mlpy/auxiliary/io.py
# def load_from_file(filename, import_modules=None):
#     """Load data from file.
# 
#     Different formats are supported.
# 
#     Parameters
#     ----------
#     filename : str
#         Name of the file to load data from.
#     import_modules : str or list
#         List of modules that may be required by the data
#         that need to be imported.
# 
#     Returns
#     -------
#     dict or list :
#         The loaded data. If any errors occur, ``None`` is returned.
# 
#     """
#     for m in listify(import_modules):
#         vars()[m] = importlib.import_module(m)
# 
#     try:
#         with open(filename, 'rb') as f:
#             try:
#                 data = eval(f.read())
#             except TypeError:
#                 f.seek(0, 0)
#                 data = pickle.load(f)
#             except SyntaxError:
#                 f.seek(0, 0)
#                 data = []
#                 for line in f:
#                     data.append(line.strip('\r\n'))
#             finally:
#                 f.seek(0, 0)
#         return data
#     except TypeError:
#         return None
# 
# Path: mlpy/auxiliary/misc.py
# def listify(obj):
#     """Ensure that the object `obj` is of type list.
# 
#     If the object is not of type `list`, the object is
#     converted into a list.
# 
#     Parameters
#     ----------
#     obj :
#         The object.
# 
#     Returns
#     -------
#     list :
#         The object inside a list.
# 
#     """
#     if obj is None:
#         return []
# 
#     return obj if isinstance(obj, (list, type(None))) else [obj]


from ..auxiliary.io import load_from_file
from ..auxiliary.misc import listify
            import importlib

        Returns
        -------
        bool :
            Whether the key exists or not.

        """
        key_list = key.split(".")
        config = self._config

        for k in key_list:
            if k in config:
                # noinspection PyTypeChecker
                config = config[k]
            else:
                return False
        return True

    def _eval_key(self, d, import_modules):
        """Evaluate the key by calling eval().

        Parameters
        ----------
        d : dict
            The configuration dictionary.
        import_modules : str or list[str]
            The modules that must be imported first.

        """
        def items():

# Path: mlpy/auxiliary/io.py
# def load_from_file(filename, import_modules=None):
#     """Load data from file.
# 
#     Different formats are supported.
# 
#     Parameters
#     ----------
#     filename : str
#         Name of the file to load data from.
#     import_modules : str or list
#         List of modules that may be required by the data
#         that need to be imported.
# 
#     Returns
#     -------
#     dict or list :
#         The loaded data. If any errors occur, ``None`` is returned.
# 
#     """
#     for m in listify(import_modules):
#         vars()[m] = importlib.import_module(m)
# 
#     try:
#         with open(filename, 'rb') as f:
#             try:
#                 data = eval(f.read())
#             except TypeError:
#                 f.seek(0, 0)
#                 data = pickle.load(f)
#             except SyntaxError:
#                 f.seek(0, 0)
#                 data = []
#                 for line in f:
#                     data.append(line.strip('\r\n'))
#             finally:
#                 f.seek(0, 0)
#         return data
#     except TypeError:
#         return None
# 
# Path: mlpy/auxiliary/misc.py
# def listify(obj):
#     """Ensure that the object `obj` is of type list.
# 
#     If the object is not of type `list`, the object is
#     converted into a list.
# 
#     Parameters
#     ----------
#     obj :
#         The object.
# 
#     Returns
#     -------
#     list :
#         The object inside a list.
# 
#     """
#     if obj is None:
#         return []
# 
#     return obj if isinstance(obj, (list, type(None))) else [obj]


# Path: mlpy/tools/configuration.py
from ..auxiliary.io import load_from_file
from ..auxiliary.misc import listify
            import importlib


        Returns
        -------
        bool :
            Whether the key exists or not.

        """
        key_list = key.split(".")
        config = self._config

        for k in key_list:
            if k in config:
                # noinspection PyTypeChecker
                config = config[k]
            else:
                return False
        return True

    def _eval_key(self, d, import_modules):
        """Evaluate the key by calling eval().

        Parameters
        ----------
        d : dict
            The configuration dictionary.
        import_modules : str or list[str]
            The modules that must be imported first.

        """
        def items():

            for m in listify(import_modules):