class_docstr: temporary hack for "register_cheap_constraint", to be removed
class_docstr_tok: ["temporary","hack","for","``","register_cheap_constraint","''",",","to","be","removed"]
code: def __init__(self, func: tp.Callable[[tp.Any], tp.Loss]) -> None:
      self.func = func
  
imports: import os
  import sys
  import shutil
  import tempfile
  import subprocess
  from pathlib import Path
  import numpy
  from nevergrad.common import typing
label_desc: Use image node_id 1 to create a new _ConstraintCompatibilityFunction object  with example: obj = _ConstraintCompatibilityFunction(func)