def METHOD_NAME():
    class UserPydantic(pydantic.BaseModel):
        name: Optional[str] = None
    @strawberry.experimental.pydantic.type(UserPydantic, all_fields=True)
    class User:
        ...
    @strawberry.type
    class Query:
        a: User = strawberry.field()
        @strawberry.field
        def a(self) -> User:
            return User()
    schema = strawberry.Schema(Query)
    expected = """
    type Query {
      a: User!
    }
    type User {
      name: String
    }
    """
    assert print_schema(schema) == textwrap.dedent(expected).strip()