dep_check function

Return the package the input object is based on