def METHOD_NAME(args=(), params=None, out=sys.stdout):
  """
  For use in PHENIX GUI only, fetches pdb filesand/or
  reflection data from the PDB.
  Parameters
  ----------
  args : list of str, optional
  params : libtbx.phil.scope_extract, optional
  out : file, optional
  Returns
  -------
  output_files : list of str
  errors : list of str
  """
  assert (params is not None)
  output_files = []
  errors = []
  mirror = "--mirror=%s" % params.fetch_pdb.site
  for id in params.fetch_pdb.pdb_ids :
    args = [mirror, id]
    if (params.fetch_pdb.action in ["all_data","all_plus_mtz"]):
      args.insert(0, "--all")
      if (params.fetch_pdb.action == "all_plus_mtz"):
        args.insert(1, "--mtz")
      try :
        data_files = run2(args=args, log=out)
        print("\n".join(data_files), file=out)
        output_files.extend(data_files)
      except Exception as e:
        errors.append(str(e))
    else :
      pdb_file = run2(args=[mirror,id], log=out)
      print(pdb_file, file=out)
      output_files.append(pdb_file)
  return output_files, errors