code: def process_nxml_file(file_name, citation=None, offline=False,
                        output_fname=default_output_fname):
      
      with open(file_name, 'rb') as f:
          nxml_str = f.read().decode('utf-8')
          return process_nxml_str(nxml_str, citation, False, output_fname)
docs: Return a ReachProcessor by processing the given NXML file.
  
      NXML is the format used by PubmedCentral for papers in the open
      access subset.
  
      Parameters
      ----------
      file_name : str
          The name of the NXML file to be processed.
      citation : Optional[str]
          A PubMed ID passed to be used in the evidence for the extracted INDRA
          Statements. Default: None
      offline : Optional[bool]
          If set to True, the REACH system is ran offline. Otherwise (by default)
          the web service is called. Default: False
      output_fname : Optional[str]
          The file to output the REACH JSON output to.
          Defaults to reach_output.json in current working directory.
  
      Returns
      -------
      rp : ReachProcessor
          A ReachProcessor containing the extracted INDRA Statements
          in rp.statements.