docs: def flatten_models(models):
          " Create 1d-array containing all disctinct models from ``models``. "
          if isinstance(models, MultiFitterModel):
              ans = [models]
          else:
              tasklist = MultiFitter._compile_models(models)
              ans = MultiFitter._flatten_models(tasklist)
          return ans