See"Causal Representation Learning from Multiple Distributions: A General Setting" for one description of the problem setup in the case of purely observational data. Implementing the approach in Section 4 of the paper and reproducing the toy experiments in Section 4.4 might be a good target for an example.
An alternative source for an example in the case of interventional data is "Nonparametric Identifiability of Causal Representations from Unknown Interventions".
See"Causal Representation Learning from Multiple Distributions: A General Setting" for one description of the problem setup in the case of purely observational data. Implementing the approach in Section 4 of the paper and reproducing the toy experiments in Section 4.4 might be a good target for an example.
An alternative source for an example in the case of interventional data is "Nonparametric Identifiability of Causal Representations from Unknown Interventions".