code: def _regularize_1m_dataset(temp_dir):
      """
      ratings.dat
        The file has no header row, and each line is in the following format:
        UserID::MovieID::Rating::Timestamp
          - UserIDs range from 1 and 6040
          - MovieIDs range from 1 and 3952
          - Ratings are made on a 5-star scale (whole-star ratings only)
          - Timestamp is represented in seconds since midnight Coordinated Universal
            Time (UTC) of January 1, 1970.
          - Each user has at least 20 ratings
  
      movies.dat
        Each line has the following format:
        MovieID::Title::Genres
          - MovieIDs range from 1 and 3952
      """
      working_dir = os.path.join(temp_dir, ML_1M)
  
      _transform_csv(
          input_path=os.path.join(working_dir, "ratings.dat"),
          output_path=os.path.join(temp_dir, RATINGS_FILE),
          names=RATING_COLUMNS,
          skip_first=False,
          separator="::",
      )
  
      _transform_csv(
          input_path=os.path.join(working_dir, "movies.dat"),
          output_path=os.path.join(temp_dir, MOVIES_FILE),
          names=MOVIE_COLUMNS,
          skip_first=False,
          separator="::",
      )
  
      tf.io.gfile.rmtree(working_dir)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import tempfile
  import zipfile
  import numpy
  import pandas
  import six
  from six.moves import urllib
  from absl import app
  from absl import flags
  from absl import logging
  import tensorflow
  from utils.flags import core
label_desc: Use image node_id 3 for calling a global function with example usage: _regularize_1m_dataset(temp_dir) without return types