def load_goals(self, path):
        """
        Load goals from a file

        :param path: the path to the file that contains the goals
        :return: nothing
        """
        goals_path = path

        if not goals_path:
            goals_path = self.goals_file

        if not goals_path:
            # Try a default value for the goals file path
            goals_path = 'models/user_simulator/goals_file.pkl'

        self.goals = None
        if isinstance(goals_path, str):
            if os.path.isfile(goals_path):
                with open(goals_path, 'rb') as file:
                    obj = pickle.load(file)

                    if 'goals' in obj:
                        self.goals = obj['goals']

                    print(f'Goal Generator: Goals loaded.')

            else:
                print(f'Warning! Goals file {goals_path} not found')
        else:
            print(f'Warning! Unacceptable value for goals file name: '
                  f'{goals_path}')

        Load goals from a file

        :param path: the path to the file that contains the goals
        :return: nothing
        
plato/agent/component/user_simulator/goal.py