class_docstr: Identifies suboject of a class and applies
  functions recursively on them.
  
  Parameters
  ----------
  object: Any
      an object containing other (sub)objects
  base: Type
      the base class of the subobjects (to filter out other items)
  attribute: str
      the attribute containing the subobjects
  
  Note
  ----
  The current implementation is rather inefficient and could probably be
  improved a lot if this becomes critical
class_docstr_tok: ["Identifies","suboject","of","a","class","and","applies","functions","recursively","on","them",".","Parameters","--","--","--","--","--","object",":","Any","an","object","containing","other","(","sub",")","objects","base",":","Type","the","base","class","of","the","subobjects","(","to","filter","out","other","items",")","attribute",":","str","the","attribute","containing","the","subobjects","Note","--","--","The","current","implementation","is","rather","inefficient","and","could","probably","be","improved","a","lot","if","this","becomes","critical"]
docstr: Creates a new instance with same configuratioon
  but for a new object.
docstr_tok: ["Creates","a","new","instance","with","same","configuratioon","but","for","a","new","object","."]
code: def new(self, obj: X) -> "Subobjects[X]":
      """Creates a new instance with same configuratioon
      but for a new object.
      """
      return Subobjects(obj, base=self.cls, attribute=self.attribute)
  
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 2 for calling the Subobjects obj's underlying member method code with example usage: obj.new(obj) and returns: Subobjects