code: def _new_data_request(
      endpoint: str, target: Optional[str], parameters: Optional[dict]
  ) -> DataRequest:
      req = DataRequest()
  
      # set up header
      req.header.exec_endpoint = endpoint
      if target:
          req.header.target_executor = target
      # add parameters field
      if parameters:
          req.parameters = parameters
      return req
  
file_path: jina/jina/clients/request/helper.py
imports: from typing import Optional, Tuple
  from jina._docarray import Document, DocumentArray, docarray_v2
  from jina.enums import DataInputType
  from jina.types.request.data import DataRequest
label_desc: Use image node_id 2 for calling a global function with example usage: _new_data_request(endpoint, target, parameters) and returns: req