code: def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
          else:
              (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs)  # noqa: E501
              return data
docs: replace_namespaced_pod_preset  # noqa: E501
  
          replace the specified PodPreset  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.replace_namespaced_pod_preset(name, namespace, body, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str name: name of the PodPreset (required)
          :param str namespace: object name and auth scope, such as for teams and projects (required)
          :param V1alpha1PodPreset body: (required)
          :param str pretty: If 'true', then the output is pretty printed.
          :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
          :return: V1alpha1PodPreset
                   If the method is called asynchronously,
                   returns the request thread.