code: def load_models_in_model_repo(self, global_model_repo=None,
                                    encoding='utf-8'):
          
          import textx.scoping
          if not global_model_repo:
              global_model_repo = textx.scoping.GlobalModelRepository()
          for filename_pattern in self.filename_pattern_list:
              global_model_repo.load_models_using_filepattern(
                  filename_pattern, model=None, glob_args=self.glob_args,
                  is_main_model=True, encoding=encoding
              )
          return global_model_repo
docs: load all registered models (called explicitly from
          the user and not as an automatic activity).
          Normally this is done automatically while
          reference resolution of one loaded model.
  
          However, if you wish to load all models
          you can call this and get a model repository.
  
          The metamodels must be identifiable via the MetaModelProvider.
  
          Returns:
              a GlobalModelRepository with the loaded models