code: def parse_pip_requirements(requirement_file_path):
      
      return sorted(
          str(r.req)
          for r in parse_requirements(requirement_file_path,
                                      session=PipSession())
          if r.req
      )
docs: Parses requirements using the pip API.
  
      :param str requirement_file_path: path of the requirement file to parse.
      :returns list: list of requirements