def infer(pattern, base_path=None):
package = Package({}, base_path=base_path)<EOL>descriptor = package.infer(pattern)<EOL>return descriptor<EOL>
https://github.com/frictionlessdata/datapackage-py#infer