code: def log_scalar(name, value, step):
      """Log a scalar value to both MLflow and TensorBoard"""
      writer.add_scalar(name, value, step)
      mlflow.log_metric(name, value)
  
file_path: mlflow/examples/pytorch/mnist_tensorboard_artifact.py
imports: import argparse
  import os
  import pickle
  import tempfile
  import torch
  import torch.nn.functional
  from tensorboardX import SummaryWriter
  from torch import nn, optim
  from torchvision import datasets, transforms
  import mlflow
  import mlflow.pytorch
label_desc: Use image node_id 3 for calling a global function with example usage: log_scalar(name, value, step) without return types