def METHOD_NAME(self, callback: Callable[..., Any]) -> Any:
    """Run the given callback in the crates with the provided names. If crates is
    empty, run the callback for all CRATES
    """
    ok = True
    for crate_dir in CRATES:
        cargo_toml_path = os.path.join(crate_dir, 'Cargo.toml')
        cargo_toml = toml.load(cargo_toml_path)
        if len(self.crates) == 0 or cargo_toml['package']['name'] in self.crates:
            with pb.local.cwd(crate_dir):
                print('Entering {}'.format(crate_dir))
                if not callback(cargo_toml['package']['name'], cargo_toml):
                    ok = False
    return ok