code: def prior_from_config(cp, variable_params, prior_section,
                            constraint_section):
          
          # get prior distribution for each variable parameter
          logging.info("Setting up priors for each parameter")
          dists = distributions.read_distributions_from_config(cp, prior_section)
          constraints = distributions.read_constraints_from_config(
              cp, constraint_section)
          return distributions.JointDistribution(variable_params, *dists,
                                                 constraints=constraints)
docs: Gets arguments and keyword arguments from a config file.
  
          Parameters
          ----------
          cp : WorkflowConfigParser
              Config file parser to read.
          variable_params : list
              List of of model parameter names.
          prior_section : str
              Section to read prior(s) from.
          constraint_section : str
              Section to read constraint(s) from.
  
          Returns
          -------
          pycbc.distributions.JointDistribution
              The prior.