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: Calls the named method with the provided input parameters (or their subobjects if
  from the base class!) on the subobjects.
docstr_tok: ["Calls","the","named","method","with","the","provided","input","parameters","(","or","their","subobjects","if","from","the","base","class","!",")","on","the","subobjects","."]
code: def apply(
      self, method: str, *args: tp.Any, **kwargs: tp.Any
  ) -> tp.Dict[tp.Any, tp.Any]:
      """Calls the named method with the provided input parameters (or their subobjects if
      from the base class!) on the subobjects.
      """
      outputs: tp.Dict[tp.Any, tp.Any] = {}
      for key, subobj in self.items():
          subargs = [self._get_subobject(arg, key) for arg in args]
          subkwargs = {
              k: self._get_subobject(kwarg, key)
              for k, kwarg in kwargs.items()
          }
          outputs[key] = getattr(subobj, method)(*subargs, **subkwargs)
      return outputs
  
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 5 for calling the Subobjects obj's underlying member method code with example usage: obj.apply(method) and returns: outputs