code: def resolve_path(schema, fragment):
      
      fragment = fragment.lstrip('/')
      parts = unquote(fragment).split('/') if fragment else []
      for part in parts:
          part = part.replace('~1', '/').replace('~0', '~')
          if isinstance(schema, list):
              schema = schema[int(part)]
          elif part in schema:
              schema = schema[part]
          else:
              raise JsonSchemaException('Unresolvable ref: {}'.format(part))
      return schema
docs: Return definition from path.
  
      Path is unescaped according https://tools.ietf.org/html/rfc6901