code: def get_marshmallow_from_dataclass_field(dfield):
      """Helper method for checking marshmallow metadata succinctly."""
      return dfield.metadata["marshmallow_field"]
  
file_path: ludwig/tests/ludwig/marshmallow/test_fields_optimization.py
imports: from typing import Optional
  import pytest
  from marshmallow.exceptions import ValidationError
  from marshmallow_dataclass import dataclass
  import ludwig.schema.optimizers
  from ludwig.schema import utils
label_desc: Use image node_id 1 for calling a global function with example usage: get_marshmallow_from_dataclass_field(dfield) and returns: dfield