code: def check(name, type=None, context=None, position=None):
      
      def decorator(func):
          registry.register_check(func, name, type, context, position)
          return func
      return decorator
docs: https://github.com/frictionlessdata/goodtables-py#custom-checks