def instance_for_arguments(self, arguments):
profiles = {**{key: value.instance_for_arguments(arguments)<EOL>for key, value<EOL>in self.profile_prior_model_dict.items()}, **self.constant_profile_dict}<EOL>try:<EOL><INDENT>redshift = self.redshift.instance_for_arguments(arguments)<EOL><DEDENT>except AttributeError:<EOL><INDENT>redshift = self.redshift<EOL><DEDENT>pixelization = self.pixelization.instance_for_arguments(arguments)if isinstance(self.pixelization, pm.PriorModel)else self.pixelization<EOL>regularization = self.regularization.instance_for_arguments(arguments)if isinstance(self.regularization, pm.PriorModel)else self.regularization<EOL>hyper_galaxy = self.hyper_galaxy.instance_for_arguments(arguments)if isinstance(self.hyper_galaxy, pm.PriorModel)else self.hyper_galaxy<EOL>return galaxy.Galaxy(redshift=redshift, pixelization=pixelization, regularization=regularization,<EOL>hyper_galaxy=hyper_galaxy, **profiles)<EOL>
Create an instance of the associated class for a set of arguments

Parameters
----------
arguments: {Prior: value}
    Dictionary mapping_matrix priors to attribute analysis_path and value pairs

Returns
-------
    An instance of the class