def get_metadata(self, workflow_ids=None, labels=None, embed_subworkflow=False):
    "Retrieve metadata for workflows matching workflow IDs or labels\n\n        Args:\n            workflow_ids:\n                List of workflows IDs to find workflows matched.\n            labels:\n                List of Caper's string labels to find workflows matched.\n            embed_subworkflow:\n                Recursively embed subworkflow's metadata in main\n                workflow's metadata.\n                This flag is to mimic behavior of Cromwell run mode with -m.\n                Metadata JSON generated with Cromwell run mode\n                includes all subworkflows embedded in main workflow's JSON file.\n        "
    valid_workflow_ids = self.find_valid_workflow_ids(workflow_ids=workflow_ids, labels=labels)
    if (valid_workflow_ids is None):
        return
    result = []
    for workflow_id in valid_workflow_ids:
        params = {}
        if embed_subworkflow:
            params['expandSubWorkflows'] = True
        m = self.__request_get(CromwellRestAPI.ENDPOINT_METADATA.format(wf_id=workflow_id), params=params)
        if m:
            cm = CromwellMetadata(m)
            result.append(cm.metadata)
    return result
Retrieve metadata for workflows matching workflow IDs or labels

Args:
    workflow_ids:
        List of workflows IDs to find workflows matched.
    labels:
        List of Caper's string labels to find workflows matched.
    embed_subworkflow:
        Recursively embed subworkflow's metadata in main
        workflow's metadata.
        This flag is to mimic behavior of Cromwell run mode with -m.
        Metadata JSON generated with Cromwell run mode
        includes all subworkflows embedded in main workflow's JSON file.
def get_metadata(self, workflow_ids=None, labels=None, embed_subworkflow=False):
    "Retrieve metadata for workflows matching workflow IDs or labels\n\n        Args:\n            workflow_ids:\n                List of workflows IDs to find workflows matched.\n            labels:\n                List of Caper's string labels to find workflows matched.\n            embed_subworkflow:\n                Recursively embed subworkflow's metadata in main\n                workflow's metadata.\n                This flag is to mimic behavior of Cromwell run mode with -m.\n                Metadata JSON generated with Cromwell run mode\n                includes all subworkflows embedded in main workflow's JSON file.\n        "
    valid_workflow_ids = self.find_valid_workflow_ids(workflow_ids=workflow_ids, labels=labels)
    if (valid_workflow_ids is None):
        return
    result = []
    for workflow_id in valid_workflow_ids:
        params = {}
        if embed_subworkflow:
            params['expandSubWorkflows'] = True
        m = self.__request_get(CromwellRestAPI.ENDPOINT_METADATA.format(wf_id=workflow_id), params=params)
        if m:
            cm = CromwellMetadata(m)
            result.append(cm.metadata)
    return result