docstr: Records a measure for the trial. This should be called in the trial run function.
  
  Args:
      name (str): Name of measure.
      value (Union[Number, str, dict]): Value of measure.
      description (Optional[str], optional): Description of measure. Defaults to None.
      type_ (Union[None, Type, str], optional): Type of measure. Defaults to None.
      lower_is_better (bool, optional): Whether the measure is considered better at a lower value. Defaults to True.
docstr_tok: ["Records","a","measure","for","the","trial",".","This","should","be","called","in","the","trial","run","function",".","Args",":","name","(","str",")",":","Name","of","measure",".","value","(","Union","[","Number",",","str",",","dict","]",")",":","Value","of","measure",".","description","(","Optional","[","str","]",",","optional",")",":","Description","of","measure",".","Defaults","to","None",".","type_","(","Union","[","None",",","Type",",","str","]",",","optional",")",":","Type","of","measure",".","Defaults","to","None",".","lower_is_better","(","bool",",","optional",")",":","Whether","the","measure","is","considered","better","at","a","lower","value",".","Defaults","to","True","."]
code: def log(
      self,
      name: str,
      value: Union[Number, str, dict],
      description: Optional[str] = None,
      type_: Union[None, Type, str] = None,
      lower_is_better: bool = True,
  ):
      """Records a measure for the trial. This should be called in the trial run function.
  
      Args:
          name (str): Name of measure.
          value (Union[Number, str, dict]): Value of measure.
          description (Optional[str], optional): Description of measure. Defaults to None.
          type_ (Union[None, Type, str], optional): Type of measure. Defaults to None.
          lower_is_better (bool, optional): Whether the measure is considered better at a lower value. Defaults to True.
      """
      self._experiment.store.add_measure(
          self._id,
          type(self),
          name,
          value,
          description,
          type_,
          lower_is_better,
      )
  
imports: import random
  from types import FunctionType
  import pandas
  from typing import Dict, Iterable
  from typing import Type, TypeVar
  from powerlift.bench.store import Store
  from typing import Union, Optional, List
  from dataclasses import dataclass
  from numbers import Number
  from powerlift.executors.base import Executor
  from powerlift.executors import LocalMachine
label_desc: Use image node_id 2 for calling the Trial obj's underlying member method code with example usage: obj.log(name, value, description, type_, lower_is_better) without return types