code: def import_from_file(self, filepath):
          
          
          inc_dirs = self.include_directories[:]
          inc_dirs.append(dirname(filepath))
                          
          parser = LEMSFileParser(self, inc_dirs, self.include_includes)
          with open(filepath) as f:
              parser.parse(f.read())
docs: Import a model from a file.
  
          @param filepath: File to be imported.
          @type filepath: str