The pattern argument supports Unix shell-style wildcards. For more information, see https://docs.python.org/3.10/library/fnmatch.html.
If the optional argument root_of_search is set, the search is limited to this object and all its child objects. When not set, all objects in the simulation will be searched.