docstr: Logs a general metric (i.e accuracy, f1)..
  
  Args:
      tag: String - Data identifier
      display_name: The title of the plot. If empty string is passed,
        `tag` will be used.
      value: Float/Integer/Boolean/String
      step: Optional. Used as the X axis when plotting on comet.ml
      epoch: Optional. Used as the X axis when plotting on comet.ml
      include_context: Optional. If set to True (the default),
          the current context will be logged along the metric.
docstr_tok: ["Logs","a","general","metric","(","i.e","accuracy",",","f1",")","..","Args",":","tag",":","String","-","Data","identifier","display_name",":","The","title","of","the","plot",".","If","empty","string","is","passed",",","`","tag","`","will","be","used",".","value",":","Float\/Integer\/Boolean\/String","step",":","Optional",".","Used","as","the","X","axis","when","plotting","on","comet.ml","epoch",":","Optional",".","Used","as","the","X","axis","when","plotting","on","comet.ml","include_context",":","Optional",".","If","set","to","True","(","the","default",")",",","the","current","context","will","be","logged","along","the","metric","."]
code: def log_metric(
      self,
      tag,
      display_name,
      value,
      step=None,
      epoch=None,
      include_context=True,
  ):
      """Logs a general metric (i.e accuracy, f1)..
  
      Args:
          tag: String - Data identifier
          display_name: The title of the plot. If empty string is passed,
            `tag` will be used.
          value: Float/Integer/Boolean/String
          step: Optional. Used as the X axis when plotting on comet.ml
          epoch: Optional. Used as the X axis when plotting on comet.ml
          include_context: Optional. If set to True (the default),
              the current context will be logged along the metric.
      """
      name = _clean_tag(tag) if display_name == "" else display_name
      self._experiment.log_metric(
          name, value, step, epoch, include_context
      )
  
imports: import logging
  import json
  import functools
  from io import BytesIO
  from google.protobuf.json_format import MessageToJson
  import numpy
  from .summary import _clean_tag
label_desc: Use image node_id 4 for calling the CometLogger obj's underlying member method code with example usage: obj.log_metric(tag, display_name, value, step, epoch, include_context) without return types