class_docstr: Function created from a file and generating the text file after
  replacement of the placeholders
class_docstr_tok: ["Function","created","from","a","file","and","generating","the","text","file","after","replacement","of","the","placeholders"]
code: def __init__(self, filepath: Path) -> None:
      self.filepath = filepath
      assert filepath.exists(), "{filepath} does not exist"
      with filepath.open("r") as f:
          text = f.read()
      deprecated_placeholders = ["NG_G{", "NG_OD{", "NG_SC{"]
      if any(x in text for x in deprecated_placeholders):
          raise RuntimeError(
              f"Found one of deprecated placeholders {deprecated_placeholders}. The API has now evolved to "
              "a single placeholder NG_ARG{name|comment}, and FolderFunction now takes as many kwargs "
              "as placeholders and must be instrumented before optimization.\n"
              "Please refer to the README, PR #73 or issue #45 for more information"
          )
      if LINETOKEN in text:
          lines = text.splitlines()
          ext = filepath.suffix.lower()
          lines = [
              (l if LINETOKEN not in l else uncomment_line(l, ext))
              for l in lines
          ]
          text = "\n".join(lines)
      self.placeholders = Placeholder.finditer(text)
      self._text = text
      self.parameters: tp.Set[str] = set()
      for x in self.placeholders:
          if x.name not in self.parameters:
              self.parameters.add(x.name)
          else:
              raise RuntimeError(
                  f'Found duplicate placeholder (names must be unique) with name "{x.name}" in file:\n{self.filepath}'
              )
  
imports: import os
  import re
  import tempfile
  import operator
  import contextlib
  from pathlib import Path
  import numpy
  import nevergrad.common.typing
  from nevergrad.common import testing
  from .None import utils
label_desc: Use image node_id 1 to create a new FileTextFunction object  with example: obj = FileTextFunction(filepath)