code: def resolve_schema(self, data):
          
          if not isinstance(data, dict):
              return
  
          # OAS 2 component or OAS 3 header
          if "schema" in data:
              data["schema"] = self.openapi.resolve_schema_dict(data["schema"])
          # OAS 3 component except header
          if self.openapi_version.major >= 3:
              if "content" in data:
                  for content_type in data["content"]:
                      schema = data["content"][content_type]["schema"]
                      data["content"][content_type][
                          "schema"
                      ] = self.openapi.resolve_schema_dict(schema)
docs: Function to resolve a schema in a parameter or response - modifies the
          corresponding dict to convert Marshmallow Schema object or class into dict
  
          :param APISpec spec: `APISpec` containing refs.
          :param dict|str data: either a parameter or response dictionary that may
              contain a schema, or a reference provided as string