code: def validate_path(path):
          
  
          if not isinstance(path, six.string_types) or not re.match('^/(?:[._a-zA-Z0-9-]/?)+[^/]$', path):
              raise InvalidUsage(
                  "Path validation failed - Expected: '/<component>[/component], got: %s" % path
              )
  
          return True
docs: Validates the provided path
  
          :param path: path to validate (string)
          :raise:
              :InvalidUsage: If validation fails.