get_distribution function

Generic Function to Extract Distribution