code: def inject_params(model_name: str) -> ListenerParams:
      
      params_file = model_name + '.params'
      try:
          with open(params_file) as f:
              pr.__dict__.update(compatibility_params, **json.load(f))
      except (OSError, ValueError, TypeError):
          if isfile(model_name):
              print('Warning: Failed to load parameters from ' + params_file)
      return pr
docs: Set the global listener params to a saved model