code: def get_nullable_type(type_):  # noqa: F811
      
      if is_non_null_type(type_):
          type_ = cast(GraphQLNonNull, type_)
          type_ = type_.of_type
      return cast(Optional[GraphQLNullableType], type_)
docs: Unwrap possible non-null type